model-writtenrun 5352 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Simon Riggs proposed allowing unnamed CREATE STATISTICS commands in #1, reusing existing automatic name generation and supplying documentation and regression tests.
- Matthias van de Meent reported passing tests but requested less grammar duplication and a corrected syntax comment in #3; Simon initially kept the implementation narrowly scoped in #4, then corrected the comment again in #6 after #5 clarified that IF NOT EXISTS still requires a name.
- After Matthias declared the patch ready in #7, Dean Rasheed posted #8, replacing the duplicated unnamed-statement branch with opt_stats_name and updating the CreateStatistics() comment; Simon and Tomas Vondra endorsed it in #9 and #10.
- Alvaro Herrera supported the statistics patch in #11 but opened a separate REINDEX grammar cleanup, attaching a rewrite that reused OptSchemaName and proposing more generally shared optional-name productions.
- Dean committed #8 unchanged as 624aa2a13b and announced it in #12, also explaining that statistics names can be schema-qualified whereas index names cannot.
- Michael Paquier tested the first REINDEX rewrite in #13, finding that it removed accepted DATABASE CONCURRENTLY syntax and would break reindexdb; he also identified an existing mismatch between documented and accepted unnamed syntax and proposed additional error-path tests.
- Alvaro implemented the shared-parser-production proposal separately as 7d158e8cb4, introducing distinct optional single and qualified names and centralizing other common productions, without posting a matching attachment.
- Alvaro's revised REINDEX patch #14 factored out the optional parenthesized options, retained DATABASE CONCURRENTLY syntax, excluded SYSTEM CONCURRENTLY from the grammar, and added Michael's tests and documentation changes; it landed with only whitespace differences as 83011ce7d7.
- In #14, Alvaro also explained that extending the optional-options production to VACUUM, ANALYZE, CLUSTER, and EXPLAIN was left out because their alternative productions accept different keywords.
- Post-commit review exposed three regressions: Michael reported discarded database names in #15, Tom Lane objected to the less informative SYSTEM CONCURRENTLY syntax error in #16, and Michael identified the missing concurrently option for DATABASE while posting the combined fix in #17.
- Alvaro approved Michael's fix and supplied a wrong-database test plus formatting adjustments in #18; Michael proposed checking index OID changes to prove concurrent rebuilding in #19, and Alvaro agreed in #20.
- Michael combined #17 and #18, added the discussed OID checks in the reindexdb TAP tests, and committed 0a5f06b84d; his application notice #21 and Alvaro's thanks #22 close the thread with the feature, cleanups, and follow-up fixes landed.