model-writtenrun 3644 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Gilles PARC reported that PostgreSQL accepted foreign keys referencing unique indexes despite documentation requiring primary-key or unique constraints, and asked whether the behavior or documentation should change #1.
- David G. Johnston opposed changing established behavior merely for model purity #3, while Laurenz Albe emphasized compatibility and the usefulness of indexes with INCLUDE columns, proposing documentation and source-comment corrections instead #4.
- Gilles suggested wording that explicitly included unique indexes #5, and Laurenz submitted a broader patch covering the constraints chapter, CREATE TABLE documentation, SQL conformance notes and the transformFkeyCheckAttrs() comment #7.
- David Rowley requested retaining primary-key and unique-constraint guidance for portability #8, then separating the extension explanation and harmonizing terminology #10; Laurenz incorporated those requests in successive revisions #9 #11.
- While preparing to commit, David found that the documentation needed to specify non-partial unique indexes and supplied a revised patch clarifying the referenced-column rules and the function's validation, output-array and error behavior #12.
- Laurenz approved David's revision while requesting consistent unhyphenated terminology #13; David incorporated that request and minor editorial adjustments into c85977d8fe, based on #12 and marked for backpatching through PostgreSQL 12.
- David announced that the patch had been pushed #14, and Laurenz's final thanks closed the thread with the documentation correction landed and no outstanding patch work identified #15.