Re: BUG #15333: pg_dump error on large table -- "pg_dump: could notstat file...iso-8859-1 error"

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: BUG #15333: pg_dump error on large table -- "pg_dump: could notstat file...iso-8859-1 error"
Дата
Msg-id 20180819221157.GC1785@paquier.xyz
обсуждение исходный текст
Ответ на Re: BUG #15333: pg_dump error on large table -- "pg_dump: could not stat file...iso-8859-1 error"  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: BUG #15333: pg_dump error on large table -- "pg_dump: could notstat file...iso-8859-1 error"  (Mark Lai <mark.lai@integrafec.com>)
Список pgsql-bugs
On Fri, Aug 17, 2018 at 10:53:11AM -0400, Tom Lane wrote:
> Mark Lai <mark.lai@integrafec.com> writes:
>> I ran the dump on the large table with no jobs flag and got the same error.
>> ...
>> The dump was successful on a small table.
>
> Weird indeed.  Can any Windows developers reproduce this and poke into it?
>
> I have a sneaking suspicion that this is related to Windows' known issues
> with concurrently-opened files, but it's pretty hard to see why there
> would be a dependency on the size of the file.

When it comes to pg_dump, the error message reported seems to come from
src/common/file_utils.c, in walkdir when processing links.  On Windows
we map lstat() to stat(), which is itself pgwin32_safestat().

If you use pg_dump --no-sync, the error could be bypassed but that's
hardly a fix.  That could be a failure on GetFileAttributeEx().  Which
file system are you using?
--
Michael

Вложения

В списке pgsql-bugs по дате отправления:

Предыдущее
От: David Steele
Дата:
Сообщение: Re: BUG #15335: Documentation is wrong about archive_command andexisting files
Следующее
От: Amit Langote
Дата:
Сообщение: Re: BUG #15334: Partition elimination not working as expected whenusing enum as partition key