model-writtenrun 38 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Bharath Rupireddy reported that parallel vacuum processes each consumed the full cost budget and proposed multiplying each process's delay by the active process count, initially targeting master and v19 because parallel autovacuum made the problem more consequential #1.
- Masahiko Sawada agreed that the budget should apply to the whole vacuum and found that the existing sleep cap would undermine the fix with many workers; Bharath incorporated a worker-scaled cap and documentation in the next patch #2 #3.
- Masahiko approved that revision and proposed backpatching all supported branches, which Bharath initially supported because manual parallel VACUUM had the same bug #4 #5.
- Chao Li warned that the scaled cap could produce multi-second pg_usleep() calls that delayed responsiveness; Bharath preferred a one-second cap, while Chao proposed combining WaitLatch() with fractional pg_usleep() delays to preserve both precision and the budget #6 #7 #8.
- Surya Poondla's benchmarks showed that the patch brought typical parallel runs under budget, but he corrected Bharath's reasoning about when the proposed one-second cap would apply and warned that older-branch backpatches could unexpectedly slow manual VACUUM #10.
- Manu measured budget overruns with the one-second cap under many workers and small limits, found additional overruns from signal-interrupted sleeps, and demonstrated that Chao's loop improved budget adherence and responsiveness while preserving fractional delays #11.
- Bharath retained the simpler one-second cap and reconsidered older backpatches; Masahiko agreed to target master and v19, requested shared-limit wording in maintenance documentation, and opposed fixing only autovacuum because manual VACUUM would retain inconsistent behavior #12 #13.
- Bharath submitted the final patch with the one-second cap and documentation updates, and Surya approved it; the WaitLatch() loop and interrupted-sleep improvements were left out #14 #15.
- Masahiko committed the final patch as 8628df8891 with an identical code and documentation diff but revised commit wording, backpatched it to v19, and closed the thread by confirming the push #16.