Provide 64-bit ftruncate() and lseek() on Windows.
Thomas Munro <tmunro@postgresql.org>
Provide 64-bit ftruncate() and lseek() on Windows. Change our ftruncate() macro to use the 64-bit variant of chsize(), and add a new macro to redirect lseek() to _lseeki64(). Back-patch to all supported releases, in preparation for a bug fix. Tested-by: Davinder Singh <davinder.singh@enterprisedb.com> Discussion: https://postgr.es/m/CAKZiRmyM4YnokK6Oenw5JKwAQ3rhP0YTz2T-tiw5dAQjGRXE3Q%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/include/port.h | modified | +27 −0 |
| src/include/port/win32_port.h | modified | +0 −2 |
| src/pl/plperl/plperl_system.h | modified | +1 −0 |
Discussion
- 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) 17 messages · 2024-11-21 → 2025-01-09