pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: williamedwinallen@live.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15858: could not stat file - over 4GB
Date: Wed, 19 Jun 2019 10:26:04 +0900
Message-ID: <20190619012604.GC2135@paquier.xyz> (raw)
In-Reply-To: <15858-9572469fd3b73263@postgresql.org>
References: <15858-9572469fd3b73263@postgresql.org>

On Tue, Jun 18, 2019 at 10:02:53AM +0000, PG Bug reporting form wrote:
> Issue using copy from command for files over 4GB.
> 
> ERROR:  could not stat file "E:\file.txt": Unknown error
> SQL state: XX000

Windows is known for having limitations in its former implementations
of stat(), and the various _stat structures they use make actually
that much harder from a compatibility point of view:
https://www.postgresql.org/message-id/1803D792815FC24D871C00D17AE95905CF5099@g01jpexmbkw24

Nobody has actually dug enough into this set of issues to get a patch
out of the ground, which basically requires more tweaks that one may
think at first sight (look at pgwin32_safestat() in src/port/dirmod.c
for example).
--
Michael

Attachments:

  [application/pgp-signature] signature.asc (832B, ../20190619012604.GC2135@paquier.xyz/2-signature.asc)
  download

view thread (45+ messages)  latest in thread

Message-ID: <20190619012604.GC2135@paquier.xyz>
Permalink:  ../20190619012604.GC2135@paquier.xyz/
Also on:    postgresql.org/message-id/20190619012604.GC2135@paquier.xyz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: michael@paquier.xyz, williamedwinallen@live.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #15858: could not stat file - over 4GB
  In-Reply-To: <20190619012604.GC2135@paquier.xyz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox