pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Provide 64-bit ftruncate() and lseek() on Windows.
Date: Thu, 09 Jan 2025 03:03:05 +0000
Message-ID: <E1tVip7-000ao0-AY@gemulon.postgresql.org> (raw)

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
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/af109e3399b63355f126f61916dcd16d833d8481

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(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1tVip7-000ao0-AY@gemulon.postgresql.org>
Permalink:  ../E1tVip7-000ao0-AY@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tVip7-000ao0-AY@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Provide 64-bit ftruncate() and lseek() on Windows.
  In-Reply-To: <E1tVip7-000ao0-AY@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox