mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
Editorialize a bit on new ProcessUtility() API.
Choose a saner ordering of parameters (adding a new input param after the output params seemed a bit random), update the function's header comment to match reality (cmon folks, is this really that hard?), get rid of useless and sloppily-defined distinction between PROCESS_UTILITY_SUBCOMMAND and PROCESS_UTILITY_GENERATED.
This commit is contained in:
@ -1184,11 +1184,10 @@ PortalRunUtility(Portal portal, Node *utilityStmt, bool isTopLevel,
|
||||
|
||||
ProcessUtility(utilityStmt,
|
||||
portal->sourceText,
|
||||
isTopLevel ? PROCESS_UTILITY_TOPLEVEL : PROCESS_UTILITY_QUERY,
|
||||
portal->portalParams,
|
||||
dest,
|
||||
completionTag,
|
||||
isTopLevel ?
|
||||
PROCESS_UTILITY_TOPLEVEL : PROCESS_UTILITY_QUERY);
|
||||
completionTag);
|
||||
|
||||
/* Some utility statements may change context on us */
|
||||
MemoryContextSwitchTo(PortalGetHeapMemory(portal));
|
||||
|
Reference in New Issue
Block a user