reassign ownership for sequences and functions as well
This commit is contained in:
parent
2eae7876e2
commit
a5cb9f268d
@ -38,7 +38,7 @@ AS $$
|
|||||||
|
|
||||||
CREATE EVENT TRIGGER oauth_reassign_tables_trigger
|
CREATE EVENT TRIGGER oauth_reassign_tables_trigger
|
||||||
ON ddl_command_end
|
ON ddl_command_end
|
||||||
WHEN TAG IN ('CREATE TABLE', 'CREATE TABLE AS', 'SELECT INTO', 'CREATE VIEW', 'CREATE FOREIGN TABLE', 'CREATE MATERIALIZED VIEW')
|
WHEN TAG IN ('CREATE TABLE', 'CREATE TABLE AS', 'SELECT INTO', 'CREATE VIEW', 'CREATE FOREIGN TABLE', 'CREATE MATERIALIZED VIEW', 'CREATE SEQUENCE', 'CREATE FUNCTION')
|
||||||
EXECUTE PROCEDURE @extschema@.CDB_OAuthReassignTableOwnerOnCreation();
|
EXECUTE PROCEDURE @extschema@.CDB_OAuthReassignTableOwnerOnCreation();
|
||||||
END;
|
END;
|
||||||
$$ LANGUAGE plpgsql VOLATILE PARALLEL UNSAFE;
|
$$ LANGUAGE plpgsql VOLATILE PARALLEL UNSAFE;
|
||||||
|
Loading…
Reference in New Issue
Block a user