model-writtenrun 1060 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Fredrik Widlert reported that reordered referenced columns caused an internal operator-family error in PostgreSQL 19devel where PostgreSQL 18 returned a normal foreign-key violation, providing a reproducer in #1.
- Matheus Alcantara traced the failure to confusing constraint-key positions with index-column positions and submitted #2, caching the mapping, correcting operator-family and collation lookups, ordering scan keys by index attribute, and adding regression tests.
- Junwang Zhao reproduced the problem with a simpler example and confirmed that the patch and tests behaved correctly in #4; Amit Langote committed the patch unchanged as 980c1a85d8 and announced it in #5.
- Following Junwang Zhao's off-list suggestion, Amit Langote added an assertion documenting that the array fast path handles only a single index column in 155c03ee9d, announcing the follow-up in #6.
- Fredrik Widlert confirmed that the fix also resolved installation failures in his larger system and supplied a same-type reordered-column reproducer in #7, explaining that this variant had produced spurious foreign-key violations instead of internal errors.
- Amit Langote turned that reproducer into supplemental regression coverage in #8 and committed its unchanged diff as 009ea1b08d; no additional runtime fix was needed.
- Amit Langote confirmed the supplemental tests had landed in #9, and Matheus Alcantara closed with thanks in #10, leaving all submitted work committed and no outstanding issue stated.