Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l5EMI-0005jl-Tg for pgsql-bugs@arkaria.postgresql.org; Thu, 28 Jan 2021 20:57:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l5ELj-0002LY-Uo for pgsql-bugs@arkaria.postgresql.org; Thu, 28 Jan 2021 20:57:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l5ELj-0002LR-P8 for pgsql-bugs@lists.postgresql.org; Thu, 28 Jan 2021 20:57:07 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l5ELh-0005wv-R5 for pgsql-bugs@lists.postgresql.org; Thu, 28 Jan 2021 20:57:07 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 10SKv2Ok2689918; Thu, 28 Jan 2021 15:57:02 -0500 From: Tom Lane To: =?utf-8?Q?Tomas_Dalebj=C3=B6rk?= 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 In-reply-to: <3EA55F53-7E84-4F6B-9043-D4DFA7184830@gmail.com> References: <2546666.1611847966@sss.pgh.pa.us> <3EA55F53-7E84-4F6B-9043-D4DFA7184830@gmail.com> Comments: In-reply-to =?utf-8?Q?Tomas_Dalebj=C3=B6rk?= message dated "Thu, 28 Jan 2021 21:24:34 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <2689916.1611867422.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Thu, 28 Jan 2021 15:57:02 -0500 Message-ID: <2689917.1611867422@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?utf-8?Q?Tomas_Dalebj=C3=B6rk?= writes: > thanks for the feedback Tom > is the seek enabled only if —format=custom > or is it enabled regardless of which flag used? There's no seeking required for plain-text output format, but of course that's even less flexible. Don't recall offhand about tar format. One thing I am kind of wondering about is why the whole thing is a problem for you at all. If the device refuses seeks, shouldn't our probe fail, and then we'll go on our way without data offsets? regards, tom lane