Re: [Patch] Windows relation extension failure at 2GB and 4GB
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Bryan Green <dbryan.green@gmail.com>, pgsql-hackers@lists.postgresql.org
Date: 2025-11-07T02:12:58Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Replace off_t by pgoff_t in I/O routines
- 84fb27511dbe 19 (unreleased) landed
-
Add check for large files in meson.build
- d715aaa76f68 16.12 landed
- f6c1342e72aa 17.8 landed
- 434b605745a1 18.2 landed
- 79cd66f28c65 19 (unreleased) landed
On Fri, Nov 07, 2025 at 02:45:32PM +1300, Thomas Munro wrote: > Only MinGW + meson. MinGW + configure has 32-bit off_t as far as I > can tell because we do: > > if test "$PORTNAME" != "win32"; then > AC_SYS_LARGEFILE > ... > > I don't personally know of any current Unix without LFS, they just > vary on whether it's always on or you have to ask for it, as autoconf > and meson know. But I suppose the check for oversized segments should > use sizeof(off_t), not the OS's identity. Yes, I was first wondering about the addition of a WIN32 check for meson, but this is a much better idea for both ./configure and meson. There is a cc.sizeof(), which I guess should be enough to report the size of off_t, and fail if we try a size larger than 4GB for the segment file when a 4-byte off_t is detected. It's something that I'd rather backpatch first down to v16, before moving on with more pgoff_t integration in the tree, mostly for history clarity. That's clearly an oversight. -- Michael