model-writtenrun 4867 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Sami Imseih proposed checking the wraparound failsafe after individual indexes during parallel VACUUM, allowing it to stop earlier and behave consistently with serial VACUUM #1.
- Peter Geoghegan questioned the necessary checking frequency and identified a separate heap-scan issue: physical block distance counts visibility-map skips as work, so he proposed basing the interval on scanned_pages instead; Sami agreed #2 #3.
- Peter clarified that his essential safeguard was a check between complete index-scan cycles, and Sami confirmed parallel VACUUM already provided that check while agreeing to prepare the heap-scan correction #4 #5.
- Sami submitted the sole patchset, replacing block-distance bookkeeping with a scanned_pages modulo check in lazy_scan_heap() #6.
- Masahiko Sawada explained that the original parallel-loop proposal would need an abstraction such as a callback to keep heap-specific failsafe logic outside generic parallel index-vacuum infrastructure, and separately approved the submitted heap-scan patch #7 #8.
- Peter committed the heap-scan patch as 07eef53955, preserving its logic and adding comments explaining the scan interval and power-of-two constant, then announced the change #9.
- Sami acknowledged the commit in the final message; the heap-scan correction had landed, while the original proposal for checks within parallel index-vacuum loops remained unimplemented in this thread #10 #7.