model-writtenrun 2570 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Jun - Jul 2024 · 6 entries
- Bertrand Drouvot proposed exposing accumulated cost-delay time in pg_stat_progress_vacuum to help users tune vacuum cost settings, initially adding requested sleep durations and using parallel progress messages to aggregate worker contributions #1.
- Nathan Bossart and Robert Haas questioned whether requested sleeps reflected actual elapsed time, and Bertrand demonstrated that signals could shorten sleeps before switching to measured elapsed time and reporting no noticeable overhead in his tests #2 #6 #12 #22 #23.
- Sami Imseih advocated also counting sleeps, but Robert and Nathan questioned the additional value once actual waiting was measured; wait counts, effective cost settings, and broader cumulative statistics remained outside the submitted feature #5 #14 #17 #20 #23.
- Masahiko Sawada warned that workers might flood the leader with messages, and Bertrand found that those messages interrupted the leader's cost-delay sleeps enough to make the instrumented vacuum finish substantially faster #9 #24.
- Bertrand introduced one-second worker-report throttling, which brought execution time close to the uninstrumented baseline; Sami suggested longer intervals, while Masahiko supported keeping the throttling simple #25 #26 #28.
- The work briefly paused for a separate discussion about resuming interrupted sleeps, then resumed in August with throttling retained because reducing interrupts was independently useful #29 #30 #31.
Aug - Oct 2024 · 1 entry
- Subsequent maintenance removed the repeatedly conflicting catalog-version bump, and Nathan's review prompted making the worker accumulator static #33 #34 #36.
Dec 2024 · 5 entries
- Masahiro Ikeda revived detailed review in December, proposing autovacuum-log reporting, correcting documentation, and identifying unreported sleep time lost when workers exited; Bertrand first documented the loss, then added an exit-time flush that Masahiro approved #37 #38 #39 #40.
- Dilip Kumar proposed shared accounting to reduce worker messages, but accepted Bertrand's concern about added synchronization overhead; the per-worker design remained, and the exit-flush component was merged into the main patch #41 #44 #45.
- Nathan proposed the name total_delay and interval output, which Bertrand implemented, then corrected fractional-second truncation after Nathan spotted integer division; Sergei Kornilov reviewed the result and reported successful check-world testing #46 #50 #51 #52 #53.
- While preparing the patch for commit, Nathan substantially revised it to cover ANALYZE, store nanoseconds, expose double-precision milliseconds as delay_time, and gate collection behind the default-off track_cost_delay_timing setting #54.
- Sergei accepted the expanded design and default-off setting, and Bertrand agreed that reusing progress reporting was pragmatic despite timing not being a conventional progress counter; the next revisions refined documentation, comments, and naming #55 #56 #58.
Feb 2025 · 5 entries
- In February, Bertrand split the delay-point refactoring into a prerequisite, and Nathan replaced separate wrappers with a mandatory is_analyze argument so third-party callers would have to identify their operation explicitly #60 #61.
- Bertrand approved Nathan's prepared series and added a third component for VERBOSE output and autovacuum logs, demonstrating that the existing progress counters could supply those reports #62.
- Nathan committed the first two components from #62 as e5b0b0ce15 and bb8dff9995; the API component matched exactly, while the progress-view component gained comment edits and its catalog-version bump #63.
- The logging component stayed in the same thread, and Nathan posted the remaining patch with revised wording and output placement, which Bertrand accepted #64 #65 #66.
- Nathan committed the logging remainder as 7720082ae5, changing the output label and documenting why direct counter reads remain valid after progress reporting ends and without changecount checks; all submitted components had landed by the final message, with stronger defensive checks offered only as a possible follow-up #67.