model-writtenrun 9724 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Geoghegan reported false corruption alarms from amcheck's heapallindexed verification and initially preferred making index-tuple formation deterministic; Tom Lane challenged that assumption because index_form_tuple() preserves differences in its inputs' TOAST state #1 #2.
- Peter clarified that the problem concerned physical representations rather than B-tree operator-class equality, then traced it to heap toasting triggered by an unrelated external datum and independently controlled heap/index compression thresholds; he concluded that amcheck must normalize tuples before both Bloom-filter insertion and probing #3 #4.
- Peter relayed Andres's concern about expression indexes and suggestion to use hash operator classes for broader logical normalization, but questioned its cost and potential to conceal meaningful differences such as numeric display scale; he also proposed exact index lookups as a possible alternative #5.
- Peter submitted a patch limited to TOAST normalization, decompressing compressed attributes and reforming tuples before fingerprinting, with a regression case adapted from an independent report; broader logical normalization remained outside the fix because of INCLUDE attributes, meaningful representation differences, and the absence of a concrete expression-index counterexample #6.
- Peter subsequently proposed a simpler regression test that gives the index attribute plain storage and the heap attribute extended storage, deliberately producing inconsistent compression without depending on delicate heap-size behavior #7.
- After the final thread message, Peter committed eba775345d from #6, retaining its normalization approach with light code and comment cleanup and the replacement test proposed in #7; the targeted false-positive fix landed and was backpatched to PostgreSQL 11, while broader logical normalization remained outside this change.