mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Code beautification for object-access hook machinery.
KaiGai Kohei
This commit is contained in:
@ -309,8 +309,7 @@ CreateOpFamily(char *amname, char *opfname, Oid namespaceoid, Oid amoid)
|
||||
recordDependencyOnCurrentExtension(&myself, false);
|
||||
|
||||
/* Post creation hook for new operator family */
|
||||
InvokeObjectAccessHook(OAT_POST_CREATE,
|
||||
OperatorFamilyRelationId, opfamilyoid, 0, NULL);
|
||||
InvokeObjectPostCreateHook(OperatorFamilyRelationId, opfamilyoid, 0);
|
||||
|
||||
heap_close(rel, RowExclusiveLock);
|
||||
|
||||
@ -710,8 +709,7 @@ DefineOpClass(CreateOpClassStmt *stmt)
|
||||
recordDependencyOnCurrentExtension(&myself, false);
|
||||
|
||||
/* Post creation hook for new operator class */
|
||||
InvokeObjectAccessHook(OAT_POST_CREATE,
|
||||
OperatorClassRelationId, opclassoid, 0, NULL);
|
||||
InvokeObjectPostCreateHook(OperatorClassRelationId, opclassoid, 0);
|
||||
|
||||
heap_close(rel, RowExclusiveLock);
|
||||
|
||||
|
Reference in New Issue
Block a user