Subject: pgsql: Update guidance for running vacuumdb after pg_upgrade.

From: Nathan Bossart <[email-masked]>
Date: Tue, 18 Mar 2025 21:33:42 +0000

Update guidance for running vacuumdb after pg_upgrade.

Now that pg_upgrade can carry over most optimizer statistics, we
should recommend using vacuumdb's new --missing-stats-only option
to only analyze relations that are missing statistics.

Reviewed-by: John Naylor <[email-masked]>
Discussion: https://postgr.es/m/Z5O1bpcwDrMgyrYy%40nathan

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/ref/pgupgrade.sgml | 9 +++++----
src/bin/pg_upgrade/check.c      | 2 +-
2 files changed, 6 insertions(+), 5 deletions(-)