vacuumdb: Add --dry-run.
authorNathan Bossart <[email protected]>
Tue, 9 Dec 2025 19:34:22 +0000 (13:34 -0600)
committerNathan Bossart <[email protected]>
Tue, 9 Dec 2025 19:34:22 +0000 (13:34 -0600)
commitd107176d27c73ea3589b949dde07b6bc38b8f583
treee3e93a198916dc99bb53a03dde45741c08d5f87a
parent750816971b35270971dd77f37ed1e9655fce4ed9
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 <[email protected]>
Reviewed-by: Chao Li <[email protected]>
Reviewed-by: Kirill Reshke <[email protected]>
Reviewed-by: Álvaro Herrera <[email protected]>
Discussion: https://postgr.es/m/CADkLM%3DckHkX7Of5SrK7g0LokPUwJ%3Dkk8JU1GXGF5pZ1eBVr0%3DQ%40mail.gmail.com
doc/src/sgml/ref/vacuumdb.sgml
src/bin/scripts/t/100_vacuumdb.pl
src/bin/scripts/vacuumdb.c
src/bin/scripts/vacuuming.c
src/bin/scripts/vacuuming.h