pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Revise parse tree representation for VACUUM and ANALYZE.
Date: Mon, 18 Mar 2019 19:19:48 +0000
Message-ID: <E1h5xnY-00053W-Qz@gemulon.postgresql.org> (raw)

Revise parse tree representation for VACUUM and ANALYZE.

Like commit f41551f61f9cf4eedd5b7173f985a3bdb4d9858c, this aims
to make it easier to add non-Boolean options to VACUUM (or, in
this case, to ANALYZE).  Instead of building up a bitmap of
options directly in the parser, build up a list of DefElem
objects and let ExecVacuum() sort it out; right now, we make
no use of the fact that a DefElem can carry an associated value,
but it will be easy to make that change in the future.

Masahiko Sawada

Discussion: http://postgr.es/m/CAD21AoATE4sn0jFFH3NcfUZXkU2BMbjBWB_kDj-XWYA-LXDcQA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6776142a07afb4c28961f27059d800196902f5f1

Modified Files
--------------
src/backend/commands/vacuum.c        | 52 ++++++++++++++++----
src/backend/parser/gram.y            | 94 ++++++++++++++++--------------------
src/backend/tcop/utility.c           |  6 +--
src/include/commands/vacuum.h        | 17 ++++++-
src/include/nodes/parsenodes.h       | 26 +++-------
src/test/regress/expected/vacuum.out |  6 ++-
src/test/regress/sql/vacuum.sql      |  1 +
7 files changed, 116 insertions(+), 86 deletions(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1h5xnY-00053W-Qz@gemulon.postgresql.org>
Permalink:  ../E1h5xnY-00053W-Qz@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1h5xnY-00053W-Qz@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: rhaas@postgresql.org
  Subject: Re: pgsql: Revise parse tree representation for VACUUM and ANALYZE.
  In-Reply-To: <E1h5xnY-00053W-Qz@gemulon.postgresql.org>
  References: <E1h5xnY-00053W-Qz@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