8000 some bullshit · ccneo/postgres@653530c · GitHub
[go: up one dir, main page]

Skip to content

Commit 653530c

Browse files
committed
some bullshit
1 parent 7af3dd5 commit 653530c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/backend/commands/typecmds.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3319,6 +3319,8 @@ AlterTypeOwner(List *names, Oid newOwnerId, ObjectType objecttype)
33193319
*
33203320
* hasDependEntry should be TRUE if type is expected to have a pg_shdepend
33213321
* entry (ie, it's not a table rowtype nor an array type).
3322+
* is_primary_ops should be TRUE if this function is invoked with user's
3323+
* direct operation (e.g, shdepReassignOwned). Elsewhere,
33223324
*/
33233325
void
33243326
AlterTypeOwnerInternal(Oid typeOid, Oid newOwnerId,
@@ -3375,6 +3377,8 @@ AlterTypeOwnerInternal(Oid typeOid, Oid newOwnerId,
33753377
if (OidIsValid(typTup->typarray))
33763378
AlterTypeOwnerInternal(typTup->typarray, newOwnerId, false);
33773379

3380+
InvokeObjectPostAlterHook(TypeRelationId, typeOid, 0);
3381+
33783382
/* Clean up */
33793383
heap_close(rel, RowExclusiveLock);
33803384
}

0 commit comments

Comments
 (0)
0