Editorialize a bit on new ProcessUtility() API.
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pg_stat_statements/pg_stat_statements.c | modified | +17 −14 |
| contrib/sepgsql/hooks.c | modified | +8 −6 |
| src/backend/commands/extension.c | modified | +2 −2 |
| src/backend/commands/schemacmds.c | modified | +2 −2 |
| src/backend/commands/trigger.c | modified | +2 −1 |
| src/backend/executor/functions.c | modified | +2 −2 |
| src/backend/executor/spi.c | modified | +2 −2 |
| src/backend/tcop/pquery.c | modified | +2 −3 |
| src/backend/tcop/utility.c | modified | +35 −27 |
| src/include/tcop/utility.h | modified | +8 −9 |