model-writtenrun 8561 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tomas Vondra reported a recovery-prefetcher bug present since PostgreSQL 15: a stale record pointer could cause assertions or an incorrect timeline switch point and checkpoint failure; his patch reset the pointer and supplied an SP-GiST-based recovery test, whose inclusion he initially left open #1.
- Chao Li demonstrated that the test fails without the fix and passes with it, while shihao zhong reported successful testing from release 15 through master #2 #3.
- Surya Poondla checked the other callers and explained why non-assert builds could fail silently, suggesting a separate PANIC check when rereading the last replayed record; that additional check was not included in either candidate commit #4.
- Tomas committed and backpatched the original patch with only comment and commit-message edits as 736ecc413b, retaining the TAP test because it was quick and useful #5.
- Fujii Masao then reported buildfarm failures on older releases without posix_fadvise, where the test's nonzero maintenance_io_concurrency setting prevents startup; Tomas agreed to skip unsupported platforms, and they considered probing configuration settings #6 #7 #8.
- Tomas posted an inline check_pg_config() guard for HAVE_POSIX_FADVISE, and Fujii pointed out that it would also skip newer macOS releases that support platform-specific prefetching #9 #10.
- Tomas clarified that the guard would apply only to releases 15–17, leaving the test running everywhere on 18 and later, and reported testing Linux configured without posix_fadvise; Fujii accepted that scope #11 #12.
- The guard landed as dbabeaed29, and Tomas's final message confirmed completion, leaving both the original fix and the older-branch test repair committed #13.