model-writtenrun 3438 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Robert Haas opened the thread in #1 after Tomas Vondra reported corruption following an incremental restore and Jakub Wartak helped reproduce it; Robert traced the problem to a chunk-boundary calculation that omitted modified blocks when relation files were exactly 512MB or 1GB.
- Robert's patch in #1 replaced the final-chunk modulo calculation with subtraction and added assertions, ensuring that a boundary-aligned stop offset remains BLOCKS_PER_CHUNK instead of becoming zero.
- Tomas confirmed in #2 that the patch fixed his test, which compared pg_dumpall output after full and incremental backups: all ten unpatched runs failed, while patched runs had no failures.
- Jakub independently confirmed the fix and reported a successful longer pgbench comparison in #3, supplied his reproducer, and suggested testing with a smaller relation-segment size to expose this class of bug without large relations.
- Robert committed #1 unchanged as 55a5ee30cd and announced completion in #4; the fix landed, while Jakub's testing suggestion received no further discussion or implementation in this thread.