model-writtenrun 2444 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Thomas Munro proposed allowing 128-block combined I/O, normally 1MB, after Tomas Vondra questioned the existing limit; the default would remain 128kB, and the larger stack arrays were considered acceptable #1.
- Andres Freund reported that larger I/O could reduce throughput and argued that future shared-memory allocation needed a startup-only ceiling separate from the user-adjustable setting #2.
- Thomas introduced a separate cap maintained through assign hooks #3, Andres suggested preserving io_combine_limit as the effective variable's name #4, and Thomas explored capturing the minimum directly in each stream to keep it stable across cursor fetches #5.
- Andres discussed combining global clamping with stream-local capture #6; Jakub Wartak contributed benchmarks supporting caution about performance gains #7, and Andres explained how cached versus disk-backed workloads could account for their different results #8.
- Thomas discovered that changing the limit during a stream could cause an actual buffer overrun, so he split out a backpatchable fix and combined it with global clamping through io_combine_limit_guc and the original range increase #9.
- The read-stream component landed unchanged as 75da2bece6, capturing a stable limit and correcting queue-overflow accounting from #9, with a backport to PostgreSQL 17.
- After AIO infrastructure landed, Thomas updated the remaining work to size its shared-memory arrays using the new cap, renamed the setting io_max_combine_limit for consistency, and proposed removing the now-confusing MAX_IO_COMBINE_LIMIT macro #10.
- The startup cap from #10 landed with small wording edits as 10f6646847, followed by its unchanged range-increase component as 06fb5612c9; the supplied commits do not include the proposed macro removal.
- Andres later reproduced assertion failures because guc_tables.c still pointed at the effective variable, allowing the GUC machinery to undo the clamp and make different I/Os overlap their allocated arrays #11.
- Tom Lane also identified improper direct assignment of GUC variables inside assign hooks and supplied replacements #12; Andres committed those changes together with the pointer correction and defensive assertions as 500b61769f, then confirmed the fix #13.
- The thread ended with the feature and corrective fix committed but portable regression coverage still unresolved: Tom suggested skipping tests on platforms with insufficient limits #14, while Thomas suggested raising Windows' emulated limit and acknowledged the assign-hook mistake #15.