model-writtenrun 118 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Geoghegan reported a longstanding multi-level nbtree page-deletion race found by Claude Code: a concurrent split could change a half-dead leaf's left sibling while its lock was released, causing stale links to enter WAL #1.
- Peter explained that recovery reconstructs the leaf page from the logged links, so the race could cause standby corruption and wal_consistency_checking failures, although the corruption typically disappeared when deletion immediately finished #1.
- Peter submitted a fix that rereads both sibling links after reacquiring the leaf lock, together with a recovery test that pauses VACUUM and forces the concurrent split #1.
- Peter credited Claude Code with authoring the reproducer and expressed doubt that the test was worth committing; the supplied thread contains no subsequent review or revision #1.
- The production fix landed as 3651d7c58b with light comment and accessor edits, while the test from #1 was omitted; the commit specifies backpatching through PostgreSQL 14.