pgsql: vacuumdb: Do not run VACUUM (ONLY_DATABASE_STATS) when --analyze - Mailing list pgsql-committers

From Fujii Masao
Subject pgsql: vacuumdb: Do not run VACUUM (ONLY_DATABASE_STATS) when --analyze
Date
Msg-id E1v1SWo-002LFL-2W@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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 <masao.fujii@gmail.com>
Reviewed-by: Mircea Cadariu <cadariu.mircea@gmail.com>
Discussion: https://postgr.es/m/CAHGQGwEqHGa-k=wbRMucUVihHVXk4NQkK94GNN=ym9cQ5HBSHg@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(-)


pgsql-committers by date:

Previous
From: Melanie Plageman
Date:
Subject: pgsql: Correct prune WAL record opcode name in comment
Next
From: Daniel Gustafsson
Date:
Subject: pgsql: doc: Remove trailing whitespace in xref