Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uRKj4-00ADUv-J1 for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Jun 2025 01:02:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uRKj2-004t6T-Mu for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Jun 2025 01:02:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uRKj2-004t6L-DO for pgsql-hackers@lists.postgresql.org; Tue, 17 Jun 2025 01:02:57 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1uRKj0-002PLT-1O for pgsql-hackers@postgresql.org; Tue, 17 Jun 2025 01:02:56 +0000 Received: from [192.168.11.9] (p1696134-ipoe.ipoe.ocn.ne.jp [118.0.93.133]) by oss.nttdata.com (Postfix) with ESMTPSA id 96E406139E; Tue, 17 Jun 2025 10:02:49 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at oss.nttdata.com Message-ID: <56f1a5ab-4852-4bec-883f-ea6b2fc437e5@oss.nttdata.com> Date: Tue, 17 Jun 2025 10:02:48 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pg_dump --with-* options To: Corey Huinker Cc: Nathan Bossart , Jeff Davis , Robert Haas , Peter Eisentraut , pgsql-hackers References: <7cc52488-f876-4ad3-affd-6e4b0ef0cb09@eisentraut.org> <1854ffbf-f8eb-4bc3-b9f8-223bbf58c392@oss.nttdata.com> <271f899c54d112b353e009286af7c6cdb7c3d609.camel@j-davis.com> <94f89b0a-5d83-4a67-9092-50ba3913441c@oss.nttdata.com> Content-Language: en-US From: Fujii Masao In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025/06/17 4:35, Corey Huinker wrote: > I noticed that --statistics (i.e., the current --with-statistics) causes > statistics to be dumped even when used with --data-only or --schema-only. > So, as far as I understand, here are the possible combinations of dump > targets and options: > > > Those should also be mutually exclusive, and I'll write up a patch to add them to the checks. --sequence-data behaves similarly, i.e., it still dumps sequence data even when used with --schema-only. So I've been thinking of both --statistics and --sequence-data as options that include additional data, regardless of whether --*-only is specified. It seems better to keep their behavior consistent to avoid confusing users. Regards, -- Fujii Masao NTT DATA Japan Corporation