[ZBX-33] 1.4.2 fails to install with Postgresql Created: 2007 Sep 01  Updated: 2017 May 30  Resolved: 2007 Sep 03

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 1.4.2
Fix Version/s: 1.4.3

Type: Incident report Priority: Major
Reporter: Alexei Vladishev Assignee: Alexander Vladishev
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

There is problem in table names used in data.sql , some data fails to import into PostgreSQL database. They should be "hosts" instead of `hosts`.

Following installation procedure with PGSQL fails:

sanatana# cat data.sql | psql -U zabbix zabbix
INSERT 404144 1
INSERT 404145 1
INSERT 404146 1
INSERT 404147 1
INSERT 404148 1
INSERT 404149 1
INSERT 404150 1
INSERT 404151 1
INSERT 404152 1
INSERT 404153 1
INSERT 404154 1
INSERT 404155 1
INSERT 404156 1
INSERT 404157 1
INSERT 404158 1
INSERT 404159 1
ERROR: syntax error at or near "`"
LINE 1: INSERT INTO `hosts` VALUES (10001,'Template_Linux','',0,'',1...
^
ERROR: syntax error at or near "`"
LINE 1: INSERT INTO `hosts` VALUES (10002,'Template_Windows','',0,''...
^
ERROR: syntax error at or near "`"
LINE 1: INSERT INTO `hosts` VALUES (10003,'Template_App_MySQL','',0,...
^
ERROR: syntax error at or near "`"
LINE 1: INSERT INTO `hosts` VALUES (10004,'Template_Standalone','',0...
^
ERROR: syntax error at or near "`"
LINE 1: INSERT INTO `hosts` VALUES (10007,'Template_SNMPv2_Device','...
^
ERROR: syntax error at or near "`"
LINE 1: INSERT INTO `hosts` VALUES (10008,'Template_FreeBSD','Templa...

Can someone post fix?
Edit/Delete Message

http://www.zabbix.com/forum/showthread.php?t=7511


Generated at Tue Jun 10 07:47:57 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.