Re: pg_basebackup failed to back up large file

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_basebackup failed to back up large file
Дата
Msg-id 16515.1401813506@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pg_basebackup failed to back up large file  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: pg_basebackup failed to back up large file
Список pgsql-hackers
Magnus Hagander <magnus@hagander.net> writes:
> Yeah, that is a clear advantage of that method. Didn't read up on pax
> format backwards compatibility, does it have some trick to achieve
> something similar?

I didn't read the fine print but it sounded like the extended header
would look like a separate file entry to a non-aware tar implementation,
which would write it out as a file and then get totally confused when
the length specified in the overlength file's entry didn't match the
amount of data following.  So it's a nice solution for some properties
but doesn't fail-soft for file length.  Not clear that there's any way
to achieve that though.

Another thought is we could make pg_basebackup simply skip any files that
exceed RELSEG_SIZE, on the principle that you don't really need/want
enormous log files to get copied anyhow.  We'd still need the pax
extension if the user had configured large RELSEG_SIZE, but having a
compatible tar could be documented as a requirement of doing that.
        regards, tom lane



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: pg_basebackup failed to back up large file
Следующее
От: Tom Lane
Дата:
Сообщение: Re: SP-GiST bug.