mirror of
https://github.com/postgres/postgres.git
synced 2025-07-09 22:41:56 +03:00
Code beautification for object-access hook machinery.
KaiGai Kohei
This commit is contained in:
@ -599,8 +599,7 @@ CreateForeignDataWrapper(CreateFdwStmt *stmt)
|
||||
recordDependencyOnCurrentExtension(&myself, false);
|
||||
|
||||
/* Post creation hook for new foreign data wrapper */
|
||||
InvokeObjectAccessHook(OAT_POST_CREATE,
|
||||
ForeignDataWrapperRelationId, fdwId, 0, NULL);
|
||||
InvokeObjectPostCreateHook(ForeignDataWrapperRelationId, fdwId, 0);
|
||||
|
||||
heap_close(rel, RowExclusiveLock);
|
||||
|
||||
@ -900,8 +899,7 @@ CreateForeignServer(CreateForeignServerStmt *stmt)
|
||||
recordDependencyOnCurrentExtension(&myself, false);
|
||||
|
||||
/* Post creation hook for new foreign server */
|
||||
InvokeObjectAccessHook(OAT_POST_CREATE,
|
||||
ForeignServerRelationId, srvId, 0, NULL);
|
||||
InvokeObjectPostCreateHook(ForeignServerRelationId, srvId, 0);
|
||||
|
||||
heap_close(rel, RowExclusiveLock);
|
||||
|
||||
@ -1145,8 +1143,7 @@ CreateUserMapping(CreateUserMappingStmt *stmt)
|
||||
recordDependencyOnCurrentExtension(&myself, false);
|
||||
|
||||
/* Post creation hook for new user mapping */
|
||||
InvokeObjectAccessHook(OAT_POST_CREATE,
|
||||
UserMappingRelationId, umId, 0, NULL);
|
||||
InvokeObjectPostCreateHook(UserMappingRelationId, umId, 0);
|
||||
|
||||
heap_close(rel, RowExclusiveLock);
|
||||
|
||||
|
Reference in New Issue
Block a user