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

2020-10-09 Thread Tom Lane
plperl.h should #undef fstat along with stat and lstat. Needed now that commit bed90759f caused win32_port.h to provide a #define for that too. Per buildfarm. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/ed30b1a60dadf2b7cc58bce5009ad8676b8fe479 Modified Files -

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

2020-10-09 Thread Tom Lane
Fix our Windows stat() emulation to handle file sizes > 4GB. Hack things so that our idea of "struct stat" is equivalent to Windows' struct __stat64, allowing it to have a wide enough st_size field. Instead of relying on native stat(), use GetFileInformationByHandle(). This avoids a number of iss