Re: pg_basebackup failed to back up large file

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: pg_basebackup failed to back up large file
Дата
Msg-id 20140603163031.GR24145@awork2.anarazel.de
обсуждение исходный текст
Ответ на Re: pg_basebackup failed to back up large file  (Magnus Hagander <magnus@hagander.net>)
Список pgsql-hackers
On 2014-06-03 18:23:07 +0200, Magnus Hagander wrote:
> On Jun 3, 2014 6:17 PM, "Andres Freund" <andres@2ndquadrant.com> wrote:
> > PG's tar.c already uses the ustar format and the referenced extension is
> > an extension to ustar as far as I understand it. So at least tarballs
> > with files < 8GB would still continue to be readable with all currently
> > working implementations.
> 
> 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?

It just introduces a new file type 'x' that's only used when extended
features are needed. That file type then contains the extended header.
So the normal ustar header is used for small files, and if more is
needed an *additional* extended header is added.
Check:
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/pax.html#tag_20_92_13_01

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: pg_basebackup failed to back up large file
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_basebackup failed to back up large file