You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the bootstrap.sql agains Postgres 8.4.20 I got:
ERROR: "$2" is declared CONSTANT
SQL state: 22005
Context: compilation of PL/pgSQL function "zbx_deprovision_partitions" near line 7
Fixed by :
DECLARE
child RECORD;
ins_count INTEGER DEFAULT 0;
new_trigger_name TEXT DEFAULT '';
BEGIN
-- default trigger name
IF trigger_name = '' THEN
new_trigger_name := table_name || '_insert';
ELSE
new_trigger_name := trigger_name;
END IF;
-- delete the insert trigger on the parent table
EXECUTE 'DROP TRIGGER ' || new_trigger_name || ' ON ' || schema_name || '.' || table_name || ' CASCADE;';
The text was updated successfully, but these errors were encountered:
When running the bootstrap.sql agains Postgres 8.4.20 I got:
ERROR: "$2" is declared CONSTANT
SQL state: 22005
Context: compilation of PL/pgSQL function "zbx_deprovision_partitions" near line 7
Fixed by :
DECLARE
child RECORD;
ins_count INTEGER DEFAULT 0;
new_trigger_name TEXT DEFAULT '';
BEGIN
-- default trigger name
IF trigger_name = '' THEN
new_trigger_name := table_name || '_insert';
ELSE
new_trigger_name := trigger_name;
END IF;
The text was updated successfully, but these errors were encountered: