model-writtenrun 2286 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Nathan Bossart's initial announcement recommended vacuumdb --missing-stats-only after pg_upgrade because optimizer statistics could now be transferred #1.
- Christoph Berg challenged that guidance because cumulative statistics used to trigger maintenance were not transferred #2; Nathan proposed filling missing optimizer statistics first and then analyzing all relations, while noting similar statistics loss after crashes and the existing ANALYZE recommendation after pg_stat_reset() #3.
- Christoph suggested restoring the old default procedure #4, but Nathan explained that unrestricted staged analysis would overwrite transferred optimizer statistics and supplied a two-command guidance patch that preserved them during the first pass #5.
- Christoph then reported a separate regression: never-analyzed tables upgraded from PostgreSQL 13 or earlier were skipped by --missing-stats-only, whereas upgrades from versions 14 through 17 worked #6.
- Christoph accepted the guidance patch and requested wording making clear that both commands should run #7; Nathan separately traced the skipped tables to the historical ambiguity of reltuples = 0 and proposed removing the filters, accepting some unnecessary analysis of empty tables #8.
- Christoph endorsed the filter removal #9, and Nathan combined it with the revised guidance into a two-patch series staged for commitment #10; Christoph subsequently confirmed that his PostgreSQL 13 test table was analyzed successfully #11.
- Both patches from #10 landed with identical diffs and light commit-message edits: the guidance as d5f1b6a75b and the vacuumdb filter removal as 9879105024.
- Nathan confirmed completion in the final message, leaving neither patch pending in this thread #12.