model-writtenrun 7035 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Sep 2024 · 5 entries
- Andres Freund restarted AIO with a rewritten design in #1: each backend could hold only one undefined handle, completed shared handles could be recycled independently of local results, and completion callbacks could not raise ordinary errors.
- Heikki Linnakangas requested clearer terminology and documentation in #2, and #6 added a synchronous fallback, separated worker and io_uring implementations, and introduced the design README.
- Robert Pang found background-writer bounce-buffer exhaustion and supplied a batch-size fix in #8, while Noah Misch supplied missing liburing linkage and exposed EXEC_BACKEND incompatibility in #9.
- Andres and Noah agreed to separate read support from write ownership and bounce-buffer work in #13 and #15, allowing the read-side infrastructure to progress independently.
- The early prerequisites from #6 landed as the unchanged fsync-off optimization 488f826c72, unchanged walsender resource-owner change 57f3702471, and lightly edited segment-boundary restriction 755a4c10d1.
Nov 2024 - Feb 2025 · 6 entries
- Jakub Wartak's testing raised descriptor-limit, tuning and timing questions in #16; Andres explained the choice to measure waiting time and retain separate concurrency controls in #17.
- After the autumn gap, #22 removed landed prerequisites and added short-read retries, wait-time statistics, synchronous-prefetch compatibility and better read-stream concurrency.
- Heikki supplied typo fixes in #26 and an alternative explicit-preparation API in #32, but Andres retained composable preparation callbacks because multiple storage layers may need to transfer resource ownership in #35.
- Naming and lifecycle review by Noah, Heikki and Robert Haas fed into #45, which renamed handles, targets and states, restored local completion callbacks, added pg_aios and drained outstanding I/O during shutdown.
- Jakub's workload and endurance tests supported the worker approach in #46 and #55, while Thomas Munro's proposal for explicitly scoped batches in #47 led to the batchmode redesign and buffer-forwarding integration in #58.
- The disowned-lock prerequisite from #58 landed with function-order and comment adjustments as f8d7f29b3e, while additional resource-owner initialization was deferred because its remaining users would be future WAL writes, as explained in #60.
Mar 2025 · 21 entries
- The March preparation work separated storage-manager reads from writes and expanded failure tests in #61; Tom Lane's concern about formatting errors inside critical sections in #70 also led to dropping pg_aios.error_desc.
- Melanie Plageman reviewed the local-buffer refactorings in #72, and their revised forms in #82 landed unchanged as fa6af9b25e, 0762a151b0, dd6f2618f6, 4b4d33b9ea and 771ba90298.
- Antonin Houska's comment and assertion suggestions in #81 were folded into #82, which also restructured synchronous/asynchronous read handling and corrected timing and vacuum-cost accounting.
- The temporary-table pin tests from #82 landed with a small test-bound adjustment as 1a22a8a0f1, and #84 resent the remaining series after those preparations were committed.
- The initialization and core AIO components of #84 landed as 02844012b3 and da7226993f, preserving the deliberately separate commits and changing only two core comments.
- Worker infrastructure and execution from #84 landed as 55b454d0e1 and 247ce06b88, with diagnostic polishing and substantive shared-memory sizing and worker-slot initialization corrections recorded in #86.
- Melanie supplied the independent platform-concurrency patch in #85 and reviewed concurrent-read accounting in #89; the latter component from #86 landed with comment refinements as 202b12774d.
- Melanie's request for consistent result-status names in #87 became the unchanged prefix-renaming component of #100, committed as ca3067cc57.
- The separate descriptor-budget problem was resolved by treating max_files_per_process as additional descriptors, with the component in #100 landing unchanged as adb5f85fa5.
- Noah's review in #108 exposed interrupt hazards, temporary-buffer cleanup problems and unsafe batching through callbacks that could block or nest; #115 added guards and tests and made read-stream batching explicitly opt-in.
- The interrupt guard from #115 landed unchanged as 96da9050a5, its local-result propagation repair landed with debug-message polishing as f321ec237a, and the discussion-driven prep-to-start rename landed as 9469d7fdd2, confirmed in #138.
- Noah's FD-turnover tests in #126 exposed io_uring corruption because IOSQE_ASYNC could delay acquiring a file reference; Andres supplied per-FD waiting in #132, which Noah tested successfully in #133.
- The liburing dependency from #115 landed unchanged as 8eadd5c73c, and its io_uring method landed with the reviewed FD-lifetime fix as c325a7633f.
- Noah's observation that warnings could reach the completing backend instead of the issuer led to WARNING result status and aggregated invalid-page reporting in #144; subsequent checksum tests exposed wrong-database attribution and unsafe statistics allocation, addressed in #151.
- The checksum-attribution and local-buffer pin-count components of #151 landed unchanged as dee8002468 and d6d8054dc7, while storage-manager read support landed with light corrections as 50cb7505b3.
- Noah's lifecycle and buffer-comment corrections, consolidated in #151, landed unchanged as 08ccd56ac7.
- The errhint_internal() and critical-section-safe checksum-statistics components of #151 landed unchanged as 4244cf6876 and b96d3c3897, while WARNING status and caller-controlled checksum policy received light edits before ef64fe26ba and d445990adc.
- Buffer-read infrastructure and StartReadBuffers() integration from #151 landed with light final adjustments as 047cba7fa0 and 12ce89fd07, making buffered reads use the AIO paths while retaining synchronous behavior where appropriate.
- The remaining read-side components of #151 landed as batching support with added amcheck integration ae3df4b341, unchanged wait-time documentation b27f8637ea, and Melanie's unchanged platform-concurrency change 2a5e709e72.
- Melanie's foreign-completion error-context patch from #157, incorporated into #160, landed unchanged from that latest submission as b3219c69fc.
- Asynchronous buffered writes were left for a later release because buffer-lock waiting remained racy and sync-request handling conflicted with critical-section constraints, as explained in #123 and #166; the experimental write, bounce-buffer and queue patches retained in #160 did not land here.
Apr - Jul 2025 · 14 entries
- The remainder in #160 received Noah's explicit final review in #163, yielding unchanged glossary additions 46250cdcb0 and the pg_aios view with a catalog-version bump 60f566b4f2.
- The test module, design README and comment-polishing components of #160 landed with cosmetic edits as 93bc3d75d8, fdd146a8ef and e19dc74491.
- Buildfarm failures reported in #167 produced two discussion-driven test repairs: tolerating Windows cleanup warnings in 43dca8a116 and avoiding FORCE_RELEASE-induced nested batching in a6285b150a, with Noah evaluating the latter workaround in #169.
- Ranier Vilela's Coverity report in #171 became the result-initialization component of #177, committed unchanged as 57dec20fd4.
- The Valgrind components of #177 were revised using Noah's allocation-path fix and decision to defer generic io_uring definedness handling in #180, producing 8ab4241b9f and 8e293e689b.
- The temporary fixed bulk-read ring enlargement in #160 was superseded by concurrency-aware, pin-limited sizing posted later in #588836 in thread #51376 and committed as 15f0cb26b5, so that commit belongs to the other thread.
- Alexander Lakhin's stress reports in #181, #187 and #188 uncovered cancellation, pg_aios crashes and wrong-state failures; the view race was diagnosed in #192 and fixed by publishing generation/state before resetting handle fields in 0d9114b704.
- The same investigation prompted the additional waiting diagnostics proposed in #190 and committed as 039bfc457e.
- Andres traced the remaining state failures to debug logging processing interrupts in #193; Noah proposed generation capture and safe free-handle checks in #194, reviewed the attachment described in #195, and the repair landed as acad909321, confirmed in #198.
- Antonin's obsolete callback-name correction in #199 landed unchanged as 95163cbe11.
- Matthias van de Meent's README pointer and assertion-bound fixes in #201, supplemented by his inline pointer correction in #203, landed together as d3f97fd1dd.
- Matthias also questioned write extensibility and result-width assumptions in #203; Andres explained the remaining buffer-locking, sync.c and EXEC_BACKEND constraints in #202 and #204, without another attached implementation.
- Tomas Vondra's Linux benchmarks in #205 and subsequent cloud, SATA and FreeBSD tests in #212 favored worker mode while showing that larger systems could benefit from more workers.
- The thread closes in #213 with read-side AIO landed and the defaults open item marked Won't Fix: PostgreSQL 18 would retain io_method=worker and io_workers=3, while asynchronous buffered writes remained future work.