Hello,
I've recently completed a zabbix setup using 4.0+ and using Postgres 9.4 and while it appears to work I've found that the housekeeper cannot delete historical data so the DB size keeps growing and growing.
Here's the error:
STATEMENT: delete from history_uint where itemid=199157 and ctid = any(array(select ctid from history_uint where itemid=199157 limit 1000))
ERROR: Cannot run UPDATE or DELETE on table history_uint because it does not have a PRIMARY KEY.
HINT: Add a PRIMARY KEY to the table
It seems there's also a few missing Primary Keys elsewhere in the latest schema for Postgres, When I try and update zabbix the database upgrade fails with a similar error above but for the dbversion table.
Any ideas on how to get around this?
I've recently completed a zabbix setup using 4.0+ and using Postgres 9.4 and while it appears to work I've found that the housekeeper cannot delete historical data so the DB size keeps growing and growing.
Here's the error:
STATEMENT: delete from history_uint where itemid=199157 and ctid = any(array(select ctid from history_uint where itemid=199157 limit 1000))
ERROR: Cannot run UPDATE or DELETE on table history_uint because it does not have a PRIMARY KEY.
HINT: Add a PRIMARY KEY to the table
It seems there's also a few missing Primary Keys elsewhere in the latest schema for Postgres, When I try and update zabbix the database upgrade fails with a similar error above but for the dbversion table.
Any ideas on how to get around this?
Comment