pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make better use of ParseState in ProcessUtility
Date: Sat, 04 Jan 2020 12:18:27 +0000
Message-ID: <E1iniNv-0002qy-Ge@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1iniNv-0002qy-Ge@gemulon.postgresql.org>
Permalink:  ../E1iniNv-0002qy-Ge@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iniNv-0002qy-Ge@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Make better use of ParseState in ProcessUtility
  In-Reply-To: <E1iniNv-0002qy-Ge@gemulon.postgresql.org>
  References: <E1iniNv-0002qy-Ge@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox