Re: BUG #15858: could not stat file - over 4GB

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Emil Iggland <emil@iggland.com>
Cc: pgsql-hackers@lists.postgresql.org, Juanjo Santamaria Flecha <juanjo.santamaria@gmail.com>
Date: 2020-10-09T20:22:20Z
Lists: pgsql-bugs, pgsql-hackers
Emil Iggland <emil@iggland.com> writes:
> I tested the patch at hand, and it performs as expected. Files larger than 4GB can be imported.

Thanks for testing!

I'd been expecting one of our Windows-savvy committers to pick this up,
but since nothing has been happening, I took it on myself to push it.
I'll probably regret that :-(

I made a few cosmetic changes, mostly reorganizing comments in a way
that made more sense to me.

			regards, tom lane



Commits

  1. Minor cleanup for win32stat.c.

  2. plperl.h should #undef fstat along with stat and lstat.

  3. Fix our Windows stat() emulation to handle file sizes > 4GB.