From: Tomas Dalebjörk <tomas.dalebjork@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16842: pg_dump uses seek calls on pipe files: suggesting adding a flag to disable seek calls
Date: Thu, 28 Jan 2021 21:24:34 +0100
Message-ID: <3EA55F53-7E84-4F6B-9043-D4DFA7184830@gmail.com> (raw)
In-Reply-To: <2546666.1611847966@sss.pgh.pa.us>
References: <2546666.1611847966@sss.pgh.pa.us>
thanks for the feedback Tom
is the seek enabled only if —format=custom
or is it enabled regardless of which flag used?
regards Tomas
Sent from my iPhone
> On 28 Jan 2021, at 16:32, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tomas.dalebjork@gmail.com, tgl@sss.pgh.pa.us, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16842: pg_dump uses seek calls on pipe files: suggesting adding a flag to disable seek calls
In-Reply-To: <3EA55F53-7E84-4F6B-9043-D4DFA7184830@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox