Re: BUG #15654: COPY command not working for 2gb CSV files - Mailing list pgsql-bugs

From Michael Paquier
Subject Re: BUG #15654: COPY command not working for 2gb CSV files
Date
Msg-id 20190225234352.GH30864@paquier.xyz
Whole thread Raw
In response to Re: BUG #15654: COPY command not working for 2gb CSV files  (David Rowley <david.rowley@2ndquadrant.com>)
Responses Re: BUG #15654: COPY command not working for 2gb CSV files
List pgsql-bugs
On Tue, Feb 26, 2019 at 03:42:40AM +1300, David Rowley wrote:
> Seems to work if I change the fstat() call to _fstati64() and change
> the type of st to struct _stat64. Perhaps we need to wrap some macros
> around these in port and have windows use the 64-bit versions.

It is a bit more complicated than it sounds as stat() is already a
macro in the Windows port.  Please see here:
https://www.postgresql.org/message-id/flat/df939c6f-2866-48b8-b3fe-5cbb54576a53%40manitou-mail.org
https://www.postgresql.org/message-id/1803D792815FC24D871C00D17AE95905CF5099@g01jpexmbkw24
--
Michael

Attachment

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #15655: local machines pushed openvpn dns issue
Next
From: David Rowley
Date:
Subject: Re: BUG #15654: COPY command not working for 2gb CSV files