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:
@ -272,8 +272,7 @@ DefineTSParser(List *names, List *parameters)
|
||||
makeParserDependencies(tup);
|
||||
|
||||
/* Post creation hook for new text search parser */
|
||||
InvokeObjectAccessHook(OAT_POST_CREATE,
|
||||
TSParserRelationId, prsOid, 0, NULL);
|
||||
InvokeObjectPostCreateHook(TSParserRelationId, prsOid, 0);
|
||||
|
||||
heap_freetuple(tup);
|
||||
|
||||
@ -479,8 +478,7 @@ DefineTSDictionary(List *names, List *parameters)
|
||||
makeDictionaryDependencies(tup);
|
||||
|
||||
/* Post creation hook for new text search dictionary */
|
||||
InvokeObjectAccessHook(OAT_POST_CREATE,
|
||||
TSDictionaryRelationId, dictOid, 0, NULL);
|
||||
InvokeObjectPostCreateHook(TSDictionaryRelationId, dictOid, 0);
|
||||
|
||||
heap_freetuple(tup);
|
||||
|
||||
@ -796,8 +794,7 @@ DefineTSTemplate(List *names, List *parameters)
|
||||
makeTSTemplateDependencies(tup);
|
||||
|
||||
/* Post creation hook for new text search template */
|
||||
InvokeObjectAccessHook(OAT_POST_CREATE,
|
||||
TSTemplateRelationId, tmplOid, 0, NULL);
|
||||
InvokeObjectPostCreateHook(TSTemplateRelationId, tmplOid, 0);
|
||||
|
||||
heap_freetuple(tup);
|
||||
|
||||
@ -1092,8 +1089,7 @@ DefineTSConfiguration(List *names, List *parameters)
|
||||
makeConfigurationDependencies(tup, false, mapRel);
|
||||
|
||||
/* Post creation hook for new text search configuration */
|
||||
InvokeObjectAccessHook(OAT_POST_CREATE,
|
||||
TSConfigRelationId, cfgOid, 0, NULL);
|
||||
InvokeObjectPostCreateHook(TSConfigRelationId, cfgOid, 0);
|
||||
|
||||
heap_freetuple(tup);
|
||||
|
||||
|
Reference in New Issue
Block a user