vacuumdb: Do not run VACUUM (ONLY_DATABASE_STATS) when --analyze-only. Previously, vacuumdb --analyze-only issued VACUUM (ONLY_DATABASE_STATS) at the end. Since --analyze-only is meant to update optimizer statistics only, this extra VACUUM command is unnecessary.
This commit prevents vacuumdb --analyze-only from running that redundant VACUUM command. Author: Fujii Masao <[email protected]> Reviewed-by: Mircea Cadariu <[email protected]> Discussion: https://postgr.es/m/CAHGQGwEqHGa-k=wbRMucUVihHVXk4NQkK94GNN=ym9cq5hb...@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/879c492480d0e9ad8155c4269f95c5e8add41901 Modified Files -------------- src/bin/scripts/t/100_vacuumdb.pl | 6 ++++++ src/bin/scripts/vacuumdb.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-)
