pgsql: Provide 64-bit ftruncate() and lseek() on Windows. - Mailing list pgsql-committers

From Thomas Munro
Subject pgsql: Provide 64-bit ftruncate() and lseek() on Windows.
Date
Msg-id E1tVios-000anP-Dl@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/026762dae39d6efcbfa99a18a15fdfeecbd5b9cc

Modified Files
--------------
src/include/port.h            | 27 +++++++++++++++++++++++++++
src/include/port/win32_port.h |  2 --
src/pl/plperl/plperl_system.h |  1 +
3 files changed, 28 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Jeff Davis
Date:
Subject: pgsql: Fix duplicate typedef from commit a2f17f004d.
Next
From: Thomas Munro
Date:
Subject: pgsql: Provide 64-bit ftruncate() and lseek() on Windows.