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

wangsh.fnst@fujitsu.com <wangsh.fnst@fujitsu.com>

From: "wangsh.fnst@fujitsu.com" <wangsh.fnst@fujitsu.com>
To: Michael Paquier <michael@paquier.xyz>, Tom Lane <tgl@sss.pgh.pa.us>
Cc: Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>, Emil Iggland <emil@iggland.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-02-25T06:07:06Z
Lists: pgsql-bugs, pgsql-hackers
Hi,

I noticed that this modification only commit into master branch, 
there is still have a problem on 12.6 or 13.2 on Windows.

Do you have a plan to backpatch this commit into REL_12_STABLE or REL_13_STABLE ?

The commit:
https://github.com/postgres/postgres/commit/bed90759fcbcd72d4d06969eebab81e47326f9a2
https://github.com/postgres/postgres/commit/ed30b1a60dadf2b7cc58bce5009ad8676b8fe479


------
Best regards
Shenhao Wang

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.