Re: BUG #11949: pg_basebackup creates defective tar file

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: BUG #11949: pg_basebackup creates defective tar file
Дата
Msg-id 54819D7B.4020501@vmware.com
обсуждение исходный текст
Ответ на Re: BUG #11949: pg_basebackup creates defective tar file  (Heikki Linnakangas <hlinnakangas@vmware.com>)
Список pgsql-bugs
On 12/04/2014 10:24 AM, Heikki Linnakangas wrote:
> The "too many bits in the mode field" problem seems to be that we store
> the file type bits that stat(2) returns in st_mode & ST_IFMT, in the
> archive's mode field, while the ustar file format only expects the
> permission bits to be there. Tar program will ignore the extra bits,
> which is why we haven't noticed, but I guess we should fix that anyway,
> for the sake of cleanliness. But that's not the root cause of the
> --append corruption.

Ok, pushed a patch to mask out the extraneous bits in the file mode
field. I only pushed it to git master, since this hasn't caused any
problems in practice.

- Heikki

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #12146: Crash when using UNION ALL
Следующее
От: Preeti Karadi
Дата:
Сообщение: Re: BUG #12141: PostgreSQL cannot be started