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

Enterprise / PostgreSQL - Michael Paquier [paquier.xyz] - 22 June 2020 04:23 UTC

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

9550ea3027 Add --no-index-cleanup and --no-truncate to vacuumdb.
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(-)

Upstream: git.postgresql.org


  • Share