model-writtenrun 8111 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Thomas Munro proposed handing SLRU fsync requests to the existing checkpoint sync infrastructure in #1, offering a smaller improvement while the broader idea of moving SLRUs into shared buffers remained a separate project.
- After a six-month gap, Thomas revived and rebased the patch in #2 to address recovery stalls, reporting a reduction from 16.83 to 4.00 seconds with commit timestamps enabled; further measurements in #3 showed benefits without that setting.
- Thomas fixed a transaction-ID wraparound corner case in #5 by allowing newly registered sync requests to reactivate previously canceled entries, then rebased the patch without functional changes in #6.
- Jakub Wartak reported passing regression and standby tests in #7 and measured roughly 20% faster recovery on a higher-latency storage workload, while distinguishing the SLRU patch's benefits from a separate tuple-compaction optimization.
- The performance investigation broadened into separate ideas: Thomas proposed background writing during crash recovery and WAL prefetching in #8, Andres Freund and Alvaro Herrera discussed avoiding recovery-time sorting in #9 and #10, and Alvaro considered a different smgr hash table in #11.
- Jakub's buffer-size experiments in #13 highlighted recovery's foreground dirty-buffer writes; Thomas supplied separate background-writer and end-of-recovery-checkpoint experiments in #16, which Jakub tested successfully in #17.
- Those additional recovery experiments remained outside the attached SLRU series: Thomas identified unresolved end-of-recovery-record questions in #18, and discussion of WAL reads, syscall costs and asynchronous I/O continued in #19 and #20.
- Returning to the SLRU patch, Thomas introduced designated sync-handler initializers in #21 and corrected initializer syntax and trailing-comma compatibility in #22.
- In #23, Thomas made checkpoint integration explicit by moving ProcessSyncRequests() into CheckPointGuts(), including SLRU activity in checkpoint statistics, and renaming the write-only operation; he also added recursive shutdown flushing and noticed missing multixact directory fsyncs.
- Thomas rejected recursive shutdown flushing as too expensive in #24, then removed the redundant ShutdownXXX() functions and separated the directory-fsync bug into a backpatchable prerequisite in #25.
- With the directory-fsync prerequisite incorporated into the base, #26 carried only the remaining offloading patch; Tom Lane reviewed the shutdown removal and requested explanatory checkpoint comments in #27, which Thomas added in #28.
- Thomas committed #28 as dee663f784, with formatting and typedef cleanup plus a final checkpoint-order adjustment suggested by Andres Freund off-list, as reported in #29.
- Months later, Tomas Vondra reported that declarations for the removed shutdown functions remained in the headers in #30; Thomas removed all four in 87c23d36a3 and confirmed completion in #31, leaving the SLRU change and its reported cleanup landed.