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 1kzkLv-0000dL-VS for pgsql-docs@arkaria.postgresql.org; Wed, 13 Jan 2021 17:54:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kzkLu-0000lu-Pj for pgsql-docs@arkaria.postgresql.org; Wed, 13 Jan 2021 17:54:38 +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 1kzkLu-0000lk-KN for pgsql-docs@lists.postgresql.org; Wed, 13 Jan 2021 17:54:38 +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 1kzkLs-00031P-0N for pgsql-docs@lists.postgresql.org; Wed, 13 Jan 2021 17:54:38 +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 10DHsKSu1288538; Wed, 13 Jan 2021 12:54:20 -0500 From: Tom Lane To: borisnov@acm.org cc: pgsql-docs@lists.postgresql.org Subject: Re: pg_dump no-owner option In-reply-to: <161052021249.12228.9598689907884726185@wrigleys.postgresql.org> References: <161052021249.12228.9598689907884726185@wrigleys.postgresql.org> Comments: In-reply-to PG Doc comments form message dated "Wed, 13 Jan 2021 06:43:32 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1288536.1610560460.1@sss.pgh.pa.us> Date: Wed, 13 Jan 2021 12:54:20 -0500 Message-ID: <1288537.1610560460@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PG Doc comments form writes: > Currently the documentation reads: > This option is only meaningful for the plain-text format. > This statement is imprecise. Yeah, I agree --- it's not clear whether the option is ignored or rejected. Explicitly saying it's ignored is an improvement. > Would be much better to change the behavior of the utility to allow the > option for all formats, but htis is somewhat more than just documentaion > change. I disagree that that would be an improvement. Per the next sentence that you omitted, the right time to apply this and similar options is when extracting data from the archive format. (pg_dump to text effectively constructs an archive dump in-memory and then extracts from that, so that its "back half" logic is identical to pg_restore's.) Filtering this info before dumping the archive would save no meaningful amount of space, while restricting how the archive could be used later. regards, tom lane