add CREATE/ALTER/DROP FOREIGN TABLE to ddl commands
This commit is contained in:
parent
2d42e6197a
commit
e6ecde4346
@ -106,7 +106,7 @@ AS $$
|
|||||||
|
|
||||||
CREATE EVENT TRIGGER link_ghost_tables
|
CREATE EVENT TRIGGER link_ghost_tables
|
||||||
ON ddl_command_end
|
ON ddl_command_end
|
||||||
WHEN TAG IN ('CREATE TABLE', 'SELECT INTO', 'DROP TABLE', 'ALTER TABLE', 'CREATE TRIGGER', 'DROP TRIGGER', 'CREATE VIEW', 'DROP VIEW', 'ALTER VIEW')
|
WHEN TAG IN ('CREATE TABLE', 'SELECT INTO', 'DROP TABLE', 'ALTER TABLE', 'CREATE TRIGGER', 'DROP TRIGGER', 'CREATE VIEW', 'DROP VIEW', 'ALTER VIEW', 'CREATE FOREIGN TABLE', 'ALTER FOREIGN TABLE', 'DROP FOREIGN TABLE')
|
||||||
EXECUTE PROCEDURE @extschema@.CDB_SaveDDLTransaction();
|
EXECUTE PROCEDURE @extschema@.CDB_SaveDDLTransaction();
|
||||||
END;
|
END;
|
||||||
$$ LANGUAGE plpgsql VOLATILE PARALLEL UNSAFE;
|
$$ LANGUAGE plpgsql VOLATILE PARALLEL UNSAFE;
|
||||||
|
Loading…
Reference in New Issue
Block a user