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

Bryan Green <dbryan.green@gmail.com>

From: Bryan Green <dbryan.green@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: Michael Paquier <michael@paquier.xyz>, pgsql-hackers@lists.postgresql.org
Date: 2025-11-07T01:17:10Z
Lists: pgsql-hackers

Attachments

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.green@gmail.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