model-writtenrun 7080 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andres Freund opened #1 with two problems: read streams could escape BAS_BULKREAD's buffer ring through unaccounted pins in PostgreSQL 17 and later, while the fixed 256kB ring severely limited asynchronous I/O concurrency in PostgreSQL 18; he proposed reserving space for outstanding pins and scaling the ring with configured I/O concurrency.
- Melanie Plageman questioned the proposed minimum-versus-maximum formula and its performance implications in #2; Andres corrected the formula, supplied benchmarks showing benefits from larger rings alongside regressions for very large cached reads, and favored retaining SYNC_SCAN_REPORT_INTERVAL in #3.
- Andres attached #4, retaining the existing 256kB allowance for reuse and synchronized scans, adding space for io_combine_limit multiplied by effective_io_concurrency, and capping growth using GetPinLimit(); he left the separate strategy-escape fix as a prototype requiring further work.
- Thomas Munro approved the patch and wished for EXPLAIN visibility into buffer strategies in #5; Andres committed it as 15f0cb26b5 with identical code and lightly revised commit prose, then acknowledged the review and the layering challenges of EXPLAIN support in #6.
- After the commit, Jakub Wartak pointed out in #7 that src/backend/storage/buffer/README still described a fixed 256kB ring chosen for L2-cache efficiency; the thread ends with ring sizing landed, that documentation concern unanswered, and the separate strategy-escape work unresolved.