model-writtenrun 8128 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andrew Bille reported that upgrading indexes from PostgreSQL 9.6 or 10 to PostgreSQL 13 produced an amcheck parent-key/child-high-key mismatch, while upgrading from 11 or 12 did not #1.
- Anastasia Lubennikova diagnosed inconsistent pivot-tuple offset numbers in old indexes and proposed comparing only tuple data for all index versions, also fixing a comment typo #2.
- Peter Geoghegan committed a revised version as aac80bfcdd, preserving offset-number checks for heapkeyspace indexes and t_info checks for every index; he explained these changes in #3.
- Alexander Korotkov said he had intended a similar adjustment and approved the committed result after it had landed, so his response does not qualify as a pre-commit review #4.
- With the fix landed, Peter explained that the approaching PostgreSQL 13 release prompted immediate action and that PostgreSQL 11 removed the historical P_HIKEY assignment, but only heapkeyspace indexes reliably identify indexes unaffected by that behavior #5.