model-writtenrun 3185 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Aug - Sep 2023 · 2 entries
- Thomas Munro proposed callback-driven streaming reads in #1, using larger synchronous vectored I/O and systematic prefetch advice as an incremental foundation for future asynchronous I/O, with experimental consumers contributed by Andres Freund, Melanie Plageman and himself.
- Heikki Linnakangas reviewed the initial interfaces in #2, recommending that single-vector optimization live in the portability wrappers and questioning cancellation and multi-relation callbacks; Andres and Thomas clarified error handling and recovery requirements in #3 and #4.
Nov 2023 - May 2024 · 22 entries
- After a gap, Thomas returned with simpler callbacks and ramp-up in #5, retaining only pg_prewarm as the immediate consumer; Heikki supported policy flags and a pg_prewarm slow-start opt-out in #7.
- Heikki approved the single-vector optimization in #6, and it landed from #5 as 15c9ac3629 with light comment edits.
- The short-write discussion in #9, #10, #11 and #12 settled on keeping retries in md.c while preserving fd.c's existing return-value and errno conventions, with a reusable vector-adjustment helper proposed in #13.
- Thomas consolidated that work in #15, and the helper and vectored file wrappers landed as 0c6be59f5e and 871fe4917e, with comment and cast cleanup.
- The remaining lower-layer patches from #15 landed as b485ad7f07, adding a final prefetch range check, and 4908c58720, preserving the storage-manager implementation with light edits.
- Melanie moved her substantially rewritten vacuum consumer and prerequisite refactors to a separate thread in #19; 4e76f984a7 belongs to that separate work and cites this thread only as motivation.
- Thomas resumed the uncommitted layers in #20, addressing Melanie's accounting review from #8, narrowing the initial API to one relation and postponing recovery's extended interface while separating advice and ramp-up for review.
- Heikki challenged the prepare/start/complete split in #21 and #23, and Thomas accepted a range-oriented two-step design in #24 that became StartReadBuffers()/WaitReadBuffers() in #27.
- Nazir Bilal Yavuz questioned pin limits, callback termination and ramp-up in #25; Thomas explained the per-backend resource limits and deferred more dynamic resource balancing and restart requirements in #26.
- Performance reports led Thomas to introduce adaptive cached, sequential and random-access behavior in #29, then refine low-concurrency scheduling in #34, which also incorporated clearer loop termination following Dilip Kumar's review in #33.
- Heikki's readability review in #37 and cached-workload performance concerns drove the larger redesign in #38: compact buffer and I/O queues replaced range objects, API names changed and the maximum combined I/O size became configurable.
- Heikki supplied cleanup and queue-reference patches in #41; Thomas incorporated them into #42, adopted read_stream and io_combine_limit naming, fixed unnecessary reads before zeroing and per-buffer-data lifetime, and added a cached-read fast path with Andres's specialization work.
- Melanie raised rescan-state requirements in #43, leading to read_stream_reset() in #48; the subsequent look-ahead fix was accidentally omitted from #49 and actually supplied in #50.
- Heikki demonstrated remaining ReadBuffer() overhead and supplied a broad BufferManagerRelation refactor in #51, but Thomas avoided making that cross-cutting change a prerequisite and instead improved inlining and callback batching in #54.
- Thomas also posted per-tablespace io_combine_limit, an experimental effective_io_readahead_window and a larger vector limit in #54, leaving the tablespace settings separate because reloptions lacked size-unit support.
- Thomas ultimately removed BMR parameters from the proposed interfaces in #55, resolving the simple ReadBuffer() regression while accepting a small residual overhead in the extreme cached streaming benchmark.
- The vectored buffer interface landed from #55 as 210622c60e, with a final persistence fix preventing SMgr-only reads of unlogged relations from incorrectly setting BM_PERMANENT, documented in #56.
- The streaming API and its pg_prewarm consumer landed from #55 as b5a9b18cd0 and 3a352df05e, respectively, with light initialization edits to the API and an unchanged consumer patch.
- Thomas reposted the three uncommitted tuning experiments in #56, explicitly leaving their usefulness and size-unit support for later work, while Melanie identified confusing block-unit diagnostics and documentation opportunities in #57.
- Nazir proposed an SMgrRelation stream constructor in #58, received Melanie's approval in #59, then added persistence handling and moved its selection out of the per-block path in #60, followed by a spelling correction in #61.
- David Rowley identified ineffective max_ios clamping and comment errors in #62; after Thomas approved the patch in #64, it landed unchanged as 2ea4b29277.
- Thomas noted Solaris's newly available vectored system calls in #65, while retaining the portability fallback and explaining why Windows scatter/gather would need later asynchronous-I/O work.
Jul - Aug 2024 · 2 entries
- Nazir discovered that Heikki's earlier example-comment correction had been missed and restored it in #66; Bruce Momjian confirmed its application in #67, and 151da217a3 matches that patch exactly.
- At the final message #67, the core vectored and streaming-read infrastructure, pg_prewarm conversion and reported cleanup fixes had landed, while this thread showed no landing for the tuning experiments in #56 or the SMgrRelation-constructor series ending at #61; other consumers and recovery remained separate work.