some bullshit
authorAlvaro Herrera <[email protected]>
Mon, 21 Dec 2015 22:31:04 +0000 (19:31 -0300)
committerAlvaro Herrera <[email protected]>
Mon, 21 Dec 2015 22:31:04 +0000 (19:31 -0300)
src/backend/commands/typecmds.c

index 0a12442ccbea443a99d0ce4e8ad0ed6713a86f81..c6ec67dcbd43bb50a93d805fd419e76f5447550f 100644 (file)
@@ -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);
 }