Re: BUG #16842: pg_dump uses seek calls on pipe files: suggesting adding a flag to disable seek calls - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #16842: pg_dump uses seek calls on pipe files: suggesting adding a flag to disable seek calls
Date
Msg-id 2546666.1611847966@sss.pgh.pa.us
Whole thread Raw
In response to 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>)
Responses 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>)
List 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 by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #16844: Relation mapping file "global/pg_filenode.map" contains invalid data
Next
From: Tom Lane
Date:
Subject: Re: BUG #16843: pg_upgrade from 12.5 to 13.1 with extension plperlu failed