model-writtenrun 9818 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane proposed automatically assigning C collation to collation-aware system catalog columns so indexes and statistics remain valid when template0 is cloned with a different database collation, while accommodating a future collation-aware name type #1.
- Tom supplied a patch implementing that policy in catalog generation, bootstrap, scan keys and catalog caches, replacing text_pattern_ops catalog indexes with text_ops and updating regression checks #2.
- Alvaro Herrera reviewed the patch and questioned why some information_schema view columns acquired C collation while others retained the database default #3.
- Tom confirmed that information_schema table statistics also needed protection and posted two alternative additions, both passing check-world: explicit C collation on table columns or C collation on the textual domains; the last message left the choice open while discussing view-comparison semantics, possible future index optimization and SQL-standard compatibility #4.
- The subsequent commit selected the domain-level alternative from #4, combined it with the original patch #2, and added only a catalog-version bump and comment reflow; the per-column alternative was not used 6b0faf7236.