From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow VACUUM to be run with index cleanup disabled.
Date: Thu, 04 Apr 2019 19:05:14 +0000
Message-ID: <E1hC7fm-0008Lw-Sq@gemulon.postgresql.org> (raw)
Allow VACUUM to be run with index cleanup disabled.
This commit adds a new reloption, vacuum_index_cleanup, which
controls whether index cleanup is performed for a particular
relation by default. It also adds a new option to the VACUUM
command, INDEX_CLEANUP, which can be used to override the
reloption. If neither the reloption nor the VACUUM option is
used, the default is true, as before.
Masahiko Sawada, reviewed and tested by Nathan Bossart, Alvaro
Herrera, Kyotaro Horiguchi, Darafei Praliaskouski, and me.
The wording of the documentation is mostly due to me.
Discussion: http://postgr.es/m/CAD21AoAt5R3DNUZSjOoXDUY=naYPUOuffVsRzuTYMz29yLzQCA@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/a96c41feec6b6616eb9d5baee9a9e08c20533c38
Modified Files
--------------
doc/src/sgml/ref/create_table.sgml | 15 ++++++
doc/src/sgml/ref/vacuum.sgml | 23 ++++++++
src/backend/access/common/reloptions.c | 13 ++++-
src/backend/access/heap/vacuumlazy.c | 97 ++++++++++++++++++++++++++--------
src/backend/commands/vacuum.c | 28 ++++++++++
src/backend/postmaster/autovacuum.c | 1 +
src/bin/psql/tab-complete.c | 6 ++-
src/include/commands/vacuum.h | 15 ++++++
src/include/utils/rel.h | 1 +
src/test/regress/expected/vacuum.out | 9 ++++
src/test/regress/sql/vacuum.sql | 10 ++++
11 files changed, 193 insertions(+), 25 deletions(-)
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: Allow VACUUM to be run with index cleanup disabled.
In-Reply-To: <E1hC7fm-0008Lw-Sq@gemulon.postgresql.org>
References: <E1hC7fm-0008Lw-Sq@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