pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add --no-index-cleanup and --no-truncate to vacuumdb.
Date: Mon, 22 Jun 2020 04:32:59 +0000
Message-ID: <E1jnE8h-0001XL-H8@gemulon.postgresql.org> (raw)

Add --no-index-cleanup and --no-truncate to vacuumdb.

Both INDEX_CLEANUP and TRUNCATE have been available since v12, and are
enabled by default except if respectively vacuum_index_cleanup and
vacuum_truncate are disabled for a given relation.  This change adds
support for disabling these options from vacuumdb.

Author: Nathan Bossart
Reviewed-by: Michael Paquier, Masahiko Sawada
Discussion: https://postgr.es/m/6F7F17EF-B1F2-4681-8D03-BA96365717C0@amazon.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9550ea3027aa4f290c998afd8836a927df40b09d

Modified Files
--------------
doc/src/sgml/ref/vacuumdb.sgml    | 30 ++++++++++++++++++++
src/bin/scripts/t/100_vacuumdb.pl | 16 ++++++++++-
src/bin/scripts/vacuumdb.c        | 58 ++++++++++++++++++++++++++++++++++++++-
3 files changed, 102 insertions(+), 2 deletions(-)



Message-ID: <E1jnE8h-0001XL-H8@gemulon.postgresql.org>
Permalink:  ../E1jnE8h-0001XL-H8@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jnE8h-0001XL-H8@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: michael@paquier.xyz
  Subject: Re: pgsql: Add --no-index-cleanup and --no-truncate to vacuumdb.
  In-Reply-To: <E1jnE8h-0001XL-H8@gemulon.postgresql.org>
  References: <E1jnE8h-0001XL-H8@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