From: Michael Paquier <michael@paquier.xyz>
To: Alistair Johnson <alistair.e.w.j@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: Unable to copy large (>2GB) files using PostgreSQL 11 (Windows)
Date: Sat, 3 Nov 2018 08:35:12 +0900
Message-ID: <20181102233512.GD1899@paquier.xyz> (raw)
In-Reply-To: <CAKHmqNCfTMM6=Pqc6RUMEQ_2BPfo5KGGG-0fzRXZCVooo=wdNA@mail.gmail.com>
References: <CAKHmqNCfTMM6=Pqc6RUMEQ_2BPfo5KGGG-0fzRXZCVooo=wdNA@mail.gmail.com>
On Fri, Nov 02, 2018 at 02:46:44PM -0400, Alistair Johnson wrote:
> I believe the issue is related to `stat` not handling large files properly.
> I installed PostgreSQL 10.5 Windows x86-64 from the EDB website, attempted
> to reproduce, and *could not* reproduce the error, so I think this is a
> PostgreSQL 11 specific bug.
You would be interested in this thread then:
https://www.postgresql.org/message-id/1803D792815FC24D871C00D17AE95905CF5099@g01jpexmbkw24
Windows portability problems with stat() makes this problem way harder
than it looks at first glance, because it also uses a "stat" structure
which is not able to store the size of files larger than 2GB. I tried a
couple of solutions for that, but gave up because of how things got
easily dirty. I don't think that we want to replace the "stat"
structure used all over the code for a "pg_stat" equivalent either, many
folks rely on the system definitions for many patches, so that would be
most likely forgotten and lead to extra bugs on Windows :(
If somebody is smart enough to design a patch for that one, please feel
free to send one..
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: michael@paquier.xyz, alistair.e.w.j@gmail.com
Subject: Re: Unable to copy large (>2GB) files using PostgreSQL 11 (Windows)
In-Reply-To: <20181102233512.GD1899@paquier.xyz>
References: <CAKHmqNCfTMM6=Pqc6RUMEQ_2BPfo5KGGG-0fzRXZCVooo=wdNA@mail.gmail.com> <20181102233512.GD1899@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