model-writtenrun 7971 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Fabrízio de Royes Mello opened the thread after a GitLab outage exposed missing documentation about ANALYZE after creating or concurrently rebuilding expression indexes, proposing additions to the CREATE INDEX and maintenance documentation #1.
- David G. Johnston proposed automatically analyzing after these operations, while Nikolay Samokhvalov raised related restore and parallelism questions before submitting separate documentation patches for older and newer branches #2 #3 #6.
- Fabrízio demonstrated that REINDEX CONCURRENTLY loses expression-index statistics while ordinary REINDEX preserves them, correcting the assumption behind Nikolay's branch distinction; Michael Paquier proposed copying statistics during the index swap #7 #8 #9.
- The automatic-ANALYZE proposal remained disputed: Tomas Vondra warned that expression indexes could wait a long time for statistics, while Tom Lane defended the existing policy and raised opt-out and transaction concerns #11 #19 #20.
- Fabrízio separated the immediate work into documentation and preservation of existing statistics, and Michael treated the concurrent versus ordinary REINDEX discrepancy as a bug and supplied a copying implementation with regression tests #21 #23 #24.
- Justin Pryzby compared Michael's patch with his own equivalent implementation, and Fabrízio tested it successfully before extracting the copying operation into CopyStatistics(); Michael then identified the redundant include and deferred a broader catalog-file reorganization #25 #26 #27.
- Michael committed the helper-based patch from #26 with naming, comment, and include cleanups as b17ff07aa3, backpatched through PostgreSQL 12, and announced the application in #30.
- Bruce Momjian returned to the outstanding documentation and replaced the earlier placement with a CREATE INDEX paragraph explaining manual ANALYZE or waiting for autovacuum, judging that command's reference page the better home for usability guidance #32.
- Bruce applied the paragraph from #32 across supported branches as 3370207986, but a final wording edit introduced an incorrect word order #34 #35.
- Justin reported both the word-order mistake and repetitive phrasing, prompting Bruce to post a two-edit follow-up patch #35 #36.
- Justin subsequently reported that Álvaro Herrera had already corrected the word order, leaving Bruce to commit only the phrasing improvement from #36 as 481f9dc3dc #37.
- The thread ended with Bruce confirming application across supported branches: statistics preservation and documentation fixes had landed, while automatic ANALYZE after index creation remained an unimplemented proposal #40.