model-writtenrun 8674 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Guancheng Luo reported that different equality semantics in partition keys and unique indexes could permit globally duplicate values, and proposed requiring matching equality operators in #1.
- Tom Lane suggested matching operator families directly, questioned compatibility across access methods, and objected to adding a separate regression script in #2.
- Guancheng Luo explained that B-tree unique indexes must remain usable with hash partitioning when equality operators match, retained the original backend logic, and moved and expanded the tests in #3.
- Tom Lane committed #3 as 501b018799, preserving equality-operator matching while reorganizing the code, adding defensive checks, and omitting the new tests; the fix was also backpatched to PostgreSQL 11 and 12.
- In the final reply #4, Tom Lane accepted the cross-access-method requirement, confirmed the patch was pushed, and explained that existing regression coverage did not justify the expense of the proposed tests, closing the thread with the fix landed.