model-writtenrun 4365 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andres Freund reported that pg_stat_io omitted smgrwriteback() time, helping explain discrepancies with checkpoint logs, and proposed adding writeback accounting for PostgreSQL 16 #1.
- Jonathan S. Katz and Amit Kapila supported considering the addition if it remained small enough for the release, with Katz subsequently recommending an open item and an early beta decision #2 #3 #12.
- Melanie Plageman questioned whether asynchronous writeback would measure only syscall overhead; Andres demonstrated substantial blocking under write-heavy workloads and explained why accounting should include other backends and I/O contexts #4 #5 #7.
- Melanie's initial patch counted writeback as writes, but Andres requested separate accounting; she then introduced IOOP_WRITEBACK and the writebacks/writeback_time columns #9 #10 #13.
- Melanie retained block-based counts rather than syscall counts, demonstrated client-backend writebacks after enabling backend_flush_after, and added IOObject to WritebackContext; Kyotaro Horiguchi's review prompted clearer timing documentation and initialization comments #14 #15 #16.
- Andres endorsed counting blocks, opposed speculative WritebackContext members, requested passing IOContext through function arguments, and recommended excluding temporary-table writebacks and investigating a regression test #18 #20.
- Melanie implemented those API and validity changes in the final three-patch submission, separating a parameter rename for readability and adding an independent BUFFER_USAGE_LIMIT optimization that reduced a regression-test table from 8000 to 4500 rows #22.
- A dedicated writeback-producing regression test was left out because Melanie could not reliably prevent background writer or checkpointer activity from consuming the dirty buffers, and the relevant configuration differed across platforms; the existing statistics-reset test still gained writeback coverage #22.
- Andres committed the final submission's test-size optimization with commit-message edits as 322875597c and its parameter rename with only whitespace changes as 52676dc2e0, retaining separate commits despite Melanie's expectation that the rename might be squashed #22 #24.
- The writeback-accounting patch from #22 landed as 093e5c57d5 with the required catalog-version bump and minor commit-message edits.
- After Jonathan's Beta 1 reminder, Andres announced that all changes were pushed and that he would close the open item; Jonathan acknowledged completion, leaving no submitted patches outstanding #23 #24 #25.