Re: [Proposal] Allow users to specify multiple tables in VACUUM commands

Nathan Bossart <bossartn@amazon.com>

From: "Bossart, Nathan" <bossartn@amazon.com>
To: "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Masahiko Sawada <sawada.mshk@gmail.com>, Michael Paquier <michael.paquier@gmail.com>
Date: 2017-05-17T22:38:10Z
Lists: pgsql-hackers

Attachments

I’ve attached a v4 of the patch.

Changes:
 - Early in vacuum(…), emit an ERROR if any specified columns do not exist.
 - Emit a WARNING and skip any specified tables or columns that disappear before they are actually processed.
 - Small additions to the VACUUM regression test.
 - Rebased with master.

Nathan

Commits

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

  2. Give a better error for duplicate entries in VACUUM/ANALYZE column list.

  3. Reject ANALYZE commands during VACUUM FULL or another ANALYZE.