model-writtenrun 3760 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reported that pgstathashindex() attempts to read nonexistent storage for partitioned hash indexes, producing a file error or assertion failure, and identified the missing relation-kind check #1.
- Michael Paquier invited a fix #2, and Alexander submitted a patch using relation_open() plus explicit index-kind and hash-access-method checks, with a regression test and consistent error messages #3.
- Alexander then found the same problem in pageinspect's hash_bitmap_info() and added a companion patch while retaining the original pgstattuple patch unchanged; he proposed keeping index_open() in pageinspect for internal consistency #4.
- Michael committed the unchanged pgstattuple component of #4 as a8dd62ef49 and reported backpatching it through PostgreSQL 12 #5.
- For the pageinspect component of #4, Michael chose relation_open() to make error handling consistent across unsupported relation kinds, added regression coverage, and committed the result as 2084701364, also backpatched through PostgreSQL 12.
- The thread ended with both fixes applied; Michael reported checking the other contrib index-manipulation code and finding no further instances of these holes #5.