model-writtenrun 2748 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jakub Wartak reported that Windows pg_basebackup failed when pg_wal.tar crossed roughly 2GB, while larger base.tar files worked, and supplied reproduction steps in #1.
- Thomas Munro identified Windows' 32-bit off_t and lseek as likely causes in #2, and Jacob Champion identified the additional 32-bit ftruncate mapping in #3.
- Jakub's first patch changed offsets to pgoff_t and called _lseeki64 directly; his testing showed that changing offset types alone was insufficient, while the combined fix produced a roughly 4GB archive in #5.
- Thomas recommended global Windows lseek redirection and sketched a ftruncate wrapper with a fallback for older runtimes in #6; davinder singh incorporated those changes to fix cross-platform compilation and reported mostly successful CI results in #7.
- Robert Haas questioned maintaining an unverified old-runtime fallback in #8 and #11, while Thomas described additional MinGW and Meson offset-width complications and became more receptive to simplifying compatibility handling in #10.
- Thomas reported that Andres had tested _chsize_s with both runtime families and that MinGW already supplied fallback handling, then posted a separate portability patch using port.h macros and MinGW declaration guards in #12.
- Davinder confirmed that the portability patch plus pgoff_t changes resolved the reproduced failure and supplied branch-specific patches in #13; although described as offsets-only, the master attachment also repeated Thomas's portability changes.
- After saying the patches looked good in #15, Thomas committed the portability portion as d02486cc8e, adjusting the macros and adding a PL/Perl undefinition; the commit credits Davinder's testing.
- Thomas committed the pg_basebackup portion as 970b97eeb8, extending the final attachment's master changes to additional remaining off_t variables, and announced both fixes pushed in #16.
- Both fixes were backpatched to all supported branches, and the thread ended with Jakub's thanks in #17, with no outstanding patch or unresolved question stated.