mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Extend object-access hook machinery to support post-alter events.
This also slightly widens the scope of what we support in terms of post-create events. KaiGai Kohei, with a few changes, mostly to the comments, by me
This commit is contained in:
@ -1374,6 +1374,9 @@ storeOperators(List *opfamilyname, Oid amoid,
|
||||
referenced.objectSubId = 0;
|
||||
recordDependencyOn(&myself, &referenced, DEPENDENCY_NORMAL);
|
||||
}
|
||||
/* Post create hook of this access method operator */
|
||||
InvokeObjectPostCreateHook(AccessMethodOperatorRelationId,
|
||||
entryoid, 0);
|
||||
}
|
||||
|
||||
heap_close(rel, RowExclusiveLock);
|
||||
@ -1473,6 +1476,9 @@ storeProcedures(List *opfamilyname, Oid amoid,
|
||||
referenced.objectSubId = 0;
|
||||
recordDependencyOn(&myself, &referenced, DEPENDENCY_AUTO);
|
||||
}
|
||||
/* Post create hook of access method procedure */
|
||||
InvokeObjectPostCreateHook(AccessMethodProcedureRelationId,
|
||||
entryoid, 0);
|
||||
}
|
||||
|
||||
heap_close(rel, RowExclusiveLock);
|
||||
|
Reference in New Issue
Block a user