Make event trigger creation idempotent

This commit is contained in:
Rob Kiefer 2017-10-13 10:33:45 -04:00 committed by RobAtticus
parent 9a432c8341
commit f97d624359

View File

@ -1,5 +1,6 @@
CREATE OR REPLACE FUNCTION _timescaledb_internal.ddl_command_end() RETURNS event_trigger
AS '$libdir/timescaledb', 'timescaledb_ddl_command_end' LANGUAGE C IMMUTABLE STRICT;
DROP EVENT TRIGGER IF EXISTS timescaledb_ddl_command_end;
CREATE EVENT TRIGGER timescaledb_ddl_command_end ON ddl_command_end
EXECUTE PROCEDURE _timescaledb_internal.ddl_command_end();