Thread: pgsql: Make better use of ParseState in ProcessUtility

pgsql: Make better use of ParseState in ProcessUtility

From
Peter Eisentraut
Date:
Make better use of ParseState in ProcessUtility

Pass ParseState into the functions called from
standard_ProcessUtility() instead passing the query string and query
environment separately.  No functionality change, but it makes the
notation consistent.  We had already started moving things into
that direction piece by piece, and this completes it.

Reviewed-by: Pavel Stehule <pavel.stehule@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/6e7aa4a1-be6a-1a75-b1f9-83a678e5184a@2ndquadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3fd40b628c7db4c4bcf03b548f9a55f85e327e25

Modified Files
--------------
src/backend/commands/createas.c   |  6 ++---
src/backend/commands/explain.c    |  7 +++---
src/backend/commands/portalcmds.c |  9 ++++---
src/backend/commands/prepare.c    | 52 +++++++++++++++------------------------
src/backend/tcop/utility.c        | 20 +++++++--------
src/include/commands/createas.h   |  2 +-
src/include/commands/explain.h    |  4 +--
src/include/commands/portalcmds.h |  5 ++--
src/include/commands/prepare.h    |  7 +++---
9 files changed, 51 insertions(+), 61 deletions(-)