diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2015-12-21 19:31:04 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2015-12-21 19:31:04 -0300 |
commit | 653530c8b1963bf91e19d03305dd0df5ad776bec (patch) | |
tree | 7fcffff71d0112ade4cf3e524d3fa026c4755d0b | |
parent | 7af3dd540e29d057ff11d5c3ed946b071885c66f (diff) |
some bullshit
-rw-r--r-- | src/backend/commands/typecmds.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/backend/commands/typecmds.c b/src/backend/commands/typecmds.c index 0a12442ccbe..c6ec67dcbd4 100644 --- a/src/backend/commands/typecmds.c +++ b/src/backend/commands/typecmds.c @@ -3319,6 +3319,8 @@ AlterTypeOwner(List *names, Oid newOwnerId, ObjectType objecttype) * * hasDependEntry should be TRUE if type is expected to have a pg_shdepend * entry (ie, it's not a table rowtype nor an array type). + * is_primary_ops should be TRUE if this function is invoked with user's + * direct operation (e.g, shdepReassignOwned). Elsewhere, */ void AlterTypeOwnerInternal(Oid typeOid, Oid newOwnerId, @@ -3375,6 +3377,8 @@ AlterTypeOwnerInternal(Oid typeOid, Oid newOwnerId, if (OidIsValid(typTup->typarray)) AlterTypeOwnerInternal(typTup->typarray, newOwnerId, false); + InvokeObjectPostAlterHook(TypeRelationId, typeOid, 0); + /* Clean up */ heap_close(rel, RowExclusiveLock); } |