Re: Unable to copy large (>2GB) files using PostgreSQL 11 (Windows)
От | Michael Paquier |
---|---|
Тема | Re: Unable to copy large (>2GB) files using PostgreSQL 11 (Windows) |
Дата | |
Msg-id | 20181102233512.GD1899@paquier.xyz обсуждение исходный текст |
Ответ на | Unable to copy large (>2GB) files using PostgreSQL 11 (Windows) (Alistair Johnson <alistair.e.w.j@gmail.com>) |
Ответы |
Re: Unable to copy large (>2GB) files using PostgreSQL 11 (Windows)
|
Список | pgsql-bugs |
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
Вложения
В списке pgsql-bugs по дате отправления: