pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: vacuumdb: Add --dry-run.
Date: Tue, 09 Dec 2025 19:35:03 +0000
Message-ID: <E1vT3UE-003g5s-1y@gemulon.postgresql.org> (raw)

vacuumdb: Add --dry-run.

This new option instructs vacuumdb to print, but not execute, the
VACUUM and ANALYZE commands that would've been sent to the server.

Author: Corey Huinker <corey.huinker@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Kirill Reshke <reshkekirill@gmail.com>
Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de>
Discussion: https://postgr.es/m/CADkLM%3DckHkX7Of5SrK7g0LokPUwJ%3Dkk8JU1GXGF5pZ1eBVr0%3DQ%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d107176d27c73ea3589b949dde07b6bc38b8f583

Modified Files
--------------
doc/src/sgml/ref/vacuumdb.sgml    | 10 ++++++++++
src/bin/scripts/t/100_vacuumdb.pl | 12 ++++++++++++
src/bin/scripts/vacuumdb.c        |  9 +++++++++
src/bin/scripts/vacuuming.c       | 30 ++++++++++++++++++++----------
src/bin/scripts/vacuuming.h       |  1 +
5 files changed, 52 insertions(+), 10 deletions(-)



Message-ID: <E1vT3UE-003g5s-1y@gemulon.postgresql.org>
Permalink:  ../E1vT3UE-003g5s-1y@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vT3UE-003g5s-1y@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: nathan@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: vacuumdb: Add --dry-run.
  In-Reply-To: <E1vT3UE-003g5s-1y@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