Skip to content
Snippets Groups Projects
Commit 653530c8 authored by Alvaro Herrera's avatar Alvaro Herrera
Browse files

some bullshit

parent 7af3dd54
No related branches found
No related tags found
No related merge requests found
...@@ -3319,6 +3319,8 @@ AlterTypeOwner(List *names, Oid newOwnerId, ObjectType objecttype) ...@@ -3319,6 +3319,8 @@ AlterTypeOwner(List *names, Oid newOwnerId, ObjectType objecttype)
* *
* hasDependEntry should be TRUE if type is expected to have a pg_shdepend * 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). * 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 void
AlterTypeOwnerInternal(Oid typeOid, Oid newOwnerId, AlterTypeOwnerInternal(Oid typeOid, Oid newOwnerId,
...@@ -3375,6 +3377,8 @@ AlterTypeOwnerInternal(Oid typeOid, Oid newOwnerId, ...@@ -3375,6 +3377,8 @@ AlterTypeOwnerInternal(Oid typeOid, Oid newOwnerId,
if (OidIsValid(typTup->typarray)) if (OidIsValid(typTup->typarray))
AlterTypeOwnerInternal(typTup->typarray, newOwnerId, false); AlterTypeOwnerInternal(typTup->typarray, newOwnerId, false);
InvokeObjectPostAlterHook(TypeRelationId, typeOid, 0);
/* Clean up */ /* Clean up */
heap_close(rel, RowExclusiveLock); heap_close(rel, RowExclusiveLock);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment