diff options
author | Robert Haas <rhaas@postgresql.org> | 2013-03-06 20:52:06 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2013-03-06 20:53:25 -0500 |
commit | f90cc269823ba5282341a197c7387f5ada6703a6 (patch) | |
tree | 3413394a2dca79c531ec3c79e8f075ad0bc89f9d /src/backend/commands/foreigncmds.c | |
parent | f11af2bcab36b51a7e41df7986d6f030459d7d09 (diff) | |
download | postgresql-f90cc269823ba5282341a197c7387f5ada6703a6.tar.gz postgresql-f90cc269823ba5282341a197c7387f5ada6703a6.zip |
Code beautification for object-access hook machinery.
KaiGai Kohei
Diffstat (limited to 'src/backend/commands/foreigncmds.c')
-rw-r--r-- | src/backend/commands/foreigncmds.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/backend/commands/foreigncmds.c b/src/backend/commands/foreigncmds.c index 7700e91c821..83cdf9e3c51 100644 --- a/src/backend/commands/foreigncmds.c +++ b/src/backend/commands/foreigncmds.c @@ -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); |