Re: pg_waldump: support decoding of WAL inside tarfile

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_waldump: support decoding of WAL inside tarfile
Дата
Msg-id 3693424.1775178682@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pg_waldump: support decoding of WAL inside tarfile  (Thomas Munro <thomas.munro@gmail.com>)
Список pgsql-hackers
Thomas Munro <thomas.munro@gmail.com> writes:
> Thanks.  I'll go ahead and push v2 shortly, which includes Sami's
> change (with credit), unless you have any better ideas for that bit.

Not really.  I wondered for a bit if it was smart to create tar files
whose contents would appear root-owned, but it could only matter if
somebody extracted such a file as root, and I don't see a plausible
pathway for that to happen, since these are merely transient test
files.

We could dodge that hazard by using, say, "--owner=1" but I'm
not sure whether that'd introduce its own problems.  In any case,
walmethods.c's tar_open_for_write is already filling in zeroes
there.

            regards, tom lane



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