pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Allow multiple tables to be specified in one VACUUM or ANALYZE c
Date: Tue, 03 Oct 2017 22:53:53 +0000
Message-ID: <E1dzW4X-00089L-5a@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Allow multiple tables to be specified in one VACUUM or ANALYZE command.

Not much to say about this; does what it says on the tin.

However, formerly, if there was a column list then the ANALYZE action was
implied; now it must be specified, or you get an error.  This is because
it would otherwise be a bit unclear what the user meant if some tables
have column lists and some don't.

Nathan Bossart, reviewed by Michael Paquier and Masahiko Sawada, with some
editorialization by me

Discussion: https://postgr.es/m/E061A8E3-5E3D-494D-94F0-E8A9B312BBFC@amazon.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/11d8d72c27a64ea4e30adce11cf6c4f3dd3e60db

Modified Files
--------------
doc/src/sgml/ref/analyze.sgml        |  14 ++-
doc/src/sgml/ref/vacuum.sgml         |  36 ++++--
src/backend/commands/vacuum.c        | 236 +++++++++++++++++++++++------------
src/backend/nodes/copyfuncs.c        |  14 +++
src/backend/nodes/equalfuncs.c       |  12 ++
src/backend/nodes/makefuncs.c        |  15 +++
src/backend/parser/gram.y            |  71 ++++-------
src/backend/postmaster/autovacuum.c  |  20 +--
src/include/commands/vacuum.h        |   3 +-
src/include/nodes/makefuncs.h        |   2 +
src/include/nodes/nodes.h            |   1 +
src/include/nodes/parsenodes.h       |  22 +++-
src/test/regress/expected/vacuum.out |  23 +++-
src/test/regress/sql/vacuum.sql      |  19 ++-
14 files changed, 329 insertions(+), 159 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


view thread (3+ messages)  latest in thread

Message-ID: <E1dzW4X-00089L-5a@gemulon.postgresql.org>
Permalink:  ../E1dzW4X-00089L-5a@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1dzW4X-00089L-5a@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Allow multiple tables to be specified in one VACUUM or ANALYZE c
  In-Reply-To: <E1dzW4X-00089L-5a@gemulon.postgresql.org>
  References: <E1dzW4X-00089L-5a@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