mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-21 21:21:22 +08:00
Make event trigger creation idempotent
This commit is contained in:
parent
9a432c8341
commit
f97d624359
@ -1,5 +1,6 @@
|
|||||||
CREATE OR REPLACE FUNCTION _timescaledb_internal.ddl_command_end() RETURNS event_trigger
|
CREATE OR REPLACE FUNCTION _timescaledb_internal.ddl_command_end() RETURNS event_trigger
|
||||||
AS '$libdir/timescaledb', 'timescaledb_ddl_command_end' LANGUAGE C IMMUTABLE STRICT;
|
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
|
CREATE EVENT TRIGGER timescaledb_ddl_command_end ON ddl_command_end
|
||||||
EXECUTE PROCEDURE _timescaledb_internal.ddl_command_end();
|
EXECUTE PROCEDURE _timescaledb_internal.ddl_command_end();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user