Re: BUG #16842: pg_dump uses seek calls on pipe files: suggesting adding a flag to disable seek calls

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #16842: pg_dump uses seek calls on pipe files: suggesting adding a flag to disable seek calls
Дата
Msg-id 2546666.1611847966@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #16842: pg_dump uses seek calls on pipe files: suggesting adding a flag to disable seek calls  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #16842: pg_dump uses seek calls on pipe files: suggesting adding a flag to disable seek calls  (Tomas Dalebjörk <tomas.dalebjork@gmail.com>)
Список pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> It would be good to add a flag to disable this feature, as some devices does
> not support seek calls, for example streaming devices such as a tape
> drive.

That seems like an extremely niche use-case, so I'm unexcited about adding
a switch for it.  You can get the same results with a pipe, as your quoted
response from Red Hat support suggests.

Note that disabling seeking is not all that desirable in the first place,
as it will result (for -Fc output) in a dump file that is significantly
restrictive to restore performance, due to lack of data offset pointers.
You might really be best advised to rethink whether you want to write
directly to an unseekable device, rather than to a temp file you transfer
to tape later.

            regards, tom lane



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

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #16844: Relation mapping file "global/pg_filenode.map" contains invalid data
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #16843: pg_upgrade from 12.5 to 13.1 with extension plperlu failed