model-writtenrun 7935 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Matthias van de Meent reported that synchronized sequential scans could make CLUSTER progress wrap around and posted a patch calculating scanned blocks relative to the scan's starting block in #1.
- Fujii Masao proposed updating progress only when the current block changes in #2; Matthias incorporated that optimization and added an explicit scan-completion update to ensure the scanned count reaches the total in #3.
- Fujii questioned the claim that dead tuples caused the completion discrepancy because the scan uses SnapshotAny in #4; Matthias clarified that genuinely empty pages cause it in #5, and Fujii requested a corresponding comment correction in #6.
- Matthias updated the comment and patch description to explain empty final scan pages in #7, and Fujii approved the revision and announced plans to backpatch through PostgreSQL 12 in #8.
- Fujii committed the final patch with only whitespace changes as 3df51ca8b3, with backports to PostgreSQL 12 and 13, and confirmed the push in #9, leaving no outstanding work in the thread.