model-writtenrun 515 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Zechman, Derek S reported that upgrading from PostgreSQL 14 to 16 and running analyze-in-stages left partitioned parents without statistics, causing worse query plans; manually analyzing the parents restored performance #1.
- Ron and Adrian Klaver explained that staged analysis produces minimal statistics quickly before building full statistics, while Derek confirmed that neither staged analysis nor analyze-only populated parent statistics #2 #3 #5 #6.
- Laurenz Albe traced the omission to vacuumdb's target selection and proposed including partitioned tables for analyze-only, matching SQL ANALYZE while leaving ordinary vacuum target selection unchanged #7.
- Mircea Cadariu tested the patch successfully and supplied a regression test that failed without it; Laurenz incorporated the test and moved the discussion to pgsql-hackers, after which Mircea marked the patch ready for a committer #8 #13 #14 #15.
- Fujii Masao requested documentation under --table, a rationale centered on matching SQL command behavior, and simpler test matching; although Mircea favored backpatching, Fujii, Nathan Bossart, and Laurenz favored treating the change as PostgreSQL 19 development work because it changed established behavior #16 #17 #18 #19 #20.
- Fujii supplied the final revision, retained the documentation's existing word 'clean' after Laurenz suggested 'process', and declined Laurenz's tentative request to include PostgreSQL 18; Laurenz accepted those decisions #22 #23 #24 #25.
- Fujii committed #22 unchanged as 6429e5b771, crediting Laurenz as author and Mircea as co-author, and announced the master-only landing #26.
- After that landing, Justin Pryzby pointed out that analyzing partitioned parents recursively would process children twice and suggested ANALYZE ONLY; the concern remained open into the following year, when Nathan raised it as a PostgreSQL 19 stabilization item #28 #29 #30.
- Fujii posted a separate fix that tracks command metadata for each selected target and uses ANALYZE ONLY for automatically selected partitioned parents, while preserving recursive ANALYZE for explicitly named --table targets #31.
- Daniel Gustafsson reviewed the fix and supplied a server-version guard because older servers lack ANALYZE ONLY; Fujii simplified that guard and clarified older-server fallback and schema-filter behavior in the final revision, which Daniel explicitly approved #32 #33 #34.
- Fujii also identified duplicate analysis for ordinary inheritance parents, but he and Daniel agreed to leave that separate enhancement for PostgreSQL 20, with possible documentation for older releases still undecided #33 #34.
- Fujii committed the final follow-up #33 as 72e6184cd5, unchanged apart from rebase context, with a backpatch through PostgreSQL 19; his final announcement leaves both submitted changes landed and the ordinary-inheritance issue deferred #35.