model-writtenrun 5266 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Christophe Pettus reported that creating a partitioned index with a '= TRUE' predicate produced a duplicate child index, while 'IS TRUE' correctly reused the existing index, and supplied a reproducer tested on PostgreSQL 13.7 and 14.5 #1.
- Tom Lane suspected asymmetric expression preprocessing: simplifying 'b = true' to 'b' on only one side would prevent otherwise matching indexes from being recognized #2.
- Richard Guo confirmed the mismatch and supplied a patch rebuilding the parent's IndexInfo through BuildIndexInfo #3; he subsequently checked the other CompareIndexInfo callers and found that they already processed both sides consistently #4.
- Tom Lane revised Richard's fix to build the parent IndexInfo only once, read collation and operator-family information directly from the parent index, and add a regression test #5.
- Richard Guo endorsed the revised patch #6, but his co-authorship excludes him from the suggested reviewers; Tom Lane committed that patch unchanged as e6dbb48487, with backpatches through PostgreSQL 11, and closed the thread by confirming it was pushed #7.