Windows pg_basebackup unable to create >2GB pg_wal.tar tarballs ("could not close file: Invalid argument" when creating pg_wal.tar of size ~ 2^31 bytes)

Edit
ID 5399
Title Windows pg_basebackup unable to create >2GB pg_wal.tar tarballs ("could not close file: Invalid argument" when creating pg_wal.tar of size ~ 2^31 bytes)
Topic Bug Fixes
Created 2024-11-22 09:56:08
Last modified 2024-11-22 09:56:44 (1 day, 19 hours ago)
Latest email 2024-11-22 23:43:48 (1 day, 6 hours ago)
Status
2025-01: Needs review
Target version stable
Authors Thomas Munro (macdice), Jakub Wartak (jakub.wartak.tomtom)
Reviewers Thomas Munro (macdice)Become reviewer
Committer
Links CFbot results (CirrusCI) CFbot GitHub
Checkout latest CFbot patchset Go to your local checkout of the PostgreSQL repository and run:
git remote add commitfest https://github.com/postgresql-cfbot/postgresql.git
git fetch commitfest cf/5399
git checkout commitfest/cf/5399
Emails
Windows pg_basebackup unable to create >2GB pg_wal.tar tarballs ("could not close file: Invalid argument" when creating pg_wal.tar of size ~ 2^31 bytes)
First at 2024-11-21 10:44:26 by Jakub Wartak <jakub.wartak at enterprisedb.com>
Latest at 2024-11-22 23:43:48 by Thomas Munro <thomas.munro at gmail.com>
Latest attachment (v1-0001-Bugfix-Windows-pg_basebackup-ability-to-create-2G.patch) at 2024-11-22 09:55:15 from Jakub Wartak <jakub.wartak at enterprisedb.com>
    Attachment (v1-0001-Bugfix-Windows-pg_basebackup-ability-to-create-2G.patch) at 2024-11-22 09:55:15 from Jakub Wartak <jakub.wartak at enterprisedb.com> (Patch: Yes)
    Attachment (DB_2834_sysinternals.png) at 2024-11-21 10:44:26 from Jakub Wartak <jakub.wartak at enterprisedb.com> (Patch: No)
History
When Who What
2024-11-22 09:56:44 Jakub Wartak (jakub.wartak.tomtom) Changed reviewers to Thomas Munro (macdice)
2024-11-22 09:56:44 Jakub Wartak (jakub.wartak.tomtom) Changed authors to Thomas Munro (macdice), Jakub Wartak (jakub.wartak.tomtom)
2024-11-22 09:56:44 Jakub Wartak (jakub.wartak.tomtom) Changed targetversion to stable
2024-11-22 09:56:08 Jakub Wartak (jakub.wartak.tomtom) Attached mail thread CAKZiRmyM4YnokK6Oenw5JKwAQ3rhP0YTz2T-tiw5dAQjGRXE3Q@mail.gmail.com
2024-11-22 09:56:08 Jakub Wartak (jakub.wartak.tomtom) Created patch record
Edit