model-writtenrun 9277 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Christoph Berg reported assertion failures after upgrading PostgreSQL 10 or earlier to 12beta2 or development HEAD #1, and Bernd Helmle found that passing through PostgreSQL 11 helped only if index activity actually upgraded the metapage #2.
- Alvaro Herrera proposed avoiding caching old metapages or upgrading them #3, while Peter Geoghegan traced the problem to PostgreSQL 11's cache-only metadata upgrade, which could make the cached version disagree with authoritative storage #4.
- Michael Paquier proposed tracking the failure as a PostgreSQL 12 open item while fixing PostgreSQL 11 #8, and Peter agreed to that tracking while emphasizing that the underlying defect already existed in PostgreSQL 11 #9.
- Peter posted an initial fix that preserved the cached version number and relaxed assertions #10, and Christoph confirmed that it restored passing Debian 10-to-12 upgrade tests #11.
- Peter then questioned whether the caching helper served any necessary purpose because consumers already knew when newer metadata fields were valid #12, and posted a revision removing the helper while retaining the earlier pageinspect safeguards #13.
- Christoph tested the revised patch on PostgreSQL 12 HEAD and reported that both check world and Debian's upgrade tests passed #14.
- Peter committed the revised approach with additional metadata-validation refactoring, assertions, and comments as d004147eb3, announcing that the fix had been backpatched through PostgreSQL 11 #15.
- After Alvaro asked about installations without assertions #16, Peter explained that the discrepancy appeared benign because VACUUM uses authoritative metadata and other consumers do not need the newer fields; the thread ended with the fix landed and no further patch pending #17.