Re: [Patch] Windows relation extension failure at 2GB and 4GB

From: Bryan Green <dbryan(dot)green(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: [Patch] Windows relation extension failure at 2GB and 4GB
Date: 2025-11-07 01:17:10
Message-ID: 525ff683-4849-4400-8e79-6a18ce10bca4@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 11/6/25 11:45, Andres Freund wrote:
> Hi,
>
> On 2025-11-06 11:17:52 -0600, Bryan Green wrote:
>> From d3f7543a35b3b72a7069188302cbfc7e4de9120b Mon Sep 17 00:00:00 2001
>> From: Bryan Green <dbryan(dot)green(at)gmail(dot)com>
>> Date: Thu, 6 Nov 2025 10:56:02 -0600
>> Subject: [PATCH] Fix Windows file I/O to support files larger than 2GB
>
> Could we add a testcase that actually exercises at least some of the
> codepaths? We presumably wouldn't want to actually write that much data, but
> it shouldn't be hard to write portable code to create a file with holes...
>
> Greetings,
>
> Andres Freund
Agreed. Added a test module called test_large_files. There is a README.

--
Bryan Green
EDB: https://www.enterprisedb.com

Attachment Content-Type Size
v3-0001-Fix-Windows-file-IO.patch text/plain 40.4 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Manni Wood 2025-11-07 01:27:29 Re: [PATCH] Add pg_get_tablespace_ddl() function to reconstruct CREATE TABLESPACE statement
Previous Message Thomas Munro 2025-11-07 01:03:06 Re: [PATCH] Fix socket handle inheritance on Windows