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 1ugoy7-007e2O-Sn for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Jul 2025 18:22:32 +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 1ugoy6-003cOr-JJ for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Jul 2025 18:22:30 +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 1ugoy5-003cOj-PQ for pgsql-hackers@lists.postgresql.org; Tue, 29 Jul 2025 18:22:30 +0000 Received: from fhigh-b6-smtp.messagingengine.com ([202.12.124.157]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1ugoy3-001QK1-2u for pgsql-hackers@postgresql.org; Tue, 29 Jul 2025 18:22:29 +0000 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfhigh.stl.internal (Postfix) with ESMTP id C5CB17A0120; Tue, 29 Jul 2025 14:22:26 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Tue, 29 Jul 2025 14:22:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm1; t=1753813346; x= 1753899746; bh=n0wBVckooauW2mFTeNn03cadjQQD0TfgluNGKetWWag=; b=h bUEnFEK2oskR6fv2BoPNTKjrKuDHF/rI7Mh+/hhC6I4Defi1e+dE7HHumT4foJ4V mX7U1I6XiQLnnP3rfI2HYDr1YINNH7mYYu3wmm3YTUSp4x/s5RhDzCH/8sEYktnd HYT76faSc802AjvIagAJBKsWUIY5tS+2CN7XjbqB3zm6nTLaimbXwZ1VgDnuboHv RKeWZ+G2xmHpPLZCSWrVBQZ2z/GRXPYKf8qrBEiRBE7Ib8llC8sZNrAMhROMb8Mg PaxAhnW92csSJ0YKuNOn/fBJ6oXmhiB9D8kgqodoer5KdOLunjIFPKLrvjTCMYj0 6GsmNzVFKr3/J0ZRk+n3Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1753813346; x=1753899746; bh=n 0wBVckooauW2mFTeNn03cadjQQD0TfgluNGKetWWag=; b=KBVqPiyur+e+c+ipa BLp63RO30xBsx21Sy2SoJLSe4cCMVHDk0vzx7aT1Uijmv97DnqaOM2wMmRPVLY93 h9WH/ul8M6QeTqIlX/BE3Ebkn5t0iWPtpaVdI840vKzFs/wcc6LWUgM6DaBh671G Mn7FMDCq+N9jcWZkIztLU/gDK2InPOr4PasnmK9FEO7H5m+QbezNcGnM54mF/8Z+ 0I9IVnWg1K53YweP8ciPDqID74WONWw0VUzeg4l/Fpb7c24aTlNOYAdYqHtS0mlm b3BHrV1lwbN5IvrzWNSErb3CcWeXdjL/0dJalZFyjfxttTND3Ja0PjtFfNbOW4GF t7Ywg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdelheejiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpemllhhvrghrohcu jfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgeskhhurhhilhgvmhhurdguvgeqnecuggftrf grthhtvghrnhepteeuvdehffekvefgueehveetveekgfegtddtueefueehuddutdfhfeff hfejfeffnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvges khhurhhilhgvmhhurdguvgdpnhgspghrtghpthhtohephedpmhhouggvpehsmhhtphhouh htpdhrtghpthhtohepphgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhgpdhrtghpthht ohepnhgrthhhrghnuggsohhsshgrrhhtsehgmhgrihhlrdgtohhmpdhrtghpthhtoheprh hosggvrhhtmhhhrggrshesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlsehj qdgurghvihhsrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrshesphhosh htghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 29 Jul 2025 14:22:26 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1753813344; bh=fPK8S0Ayw4RLXd98xXI3gCFpwgiHo9WKJ05glVhg1+A=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=GYcZCn+dRJ4JE/51OLKjApyss3CHsVBA9umyMgXI6qmUrIw+r27GI57kr7g4/68Yj ay0SpPT4GoqK/HkdzeF8Tsb0fg3RxZGAPi7yaEnLvw/e+6CZaGH0W45W9H2HBjAorK 4fWQCMga2txT0wnbpdj98lQep1E0oq5xEbVxUPeApC4OkY8vNNYW2dEhBQytHcllNK L0CKoHoVcWcxeSWQJQLulXJTWZ38V90bNa9h6Owh5Peso1+l2Y4K4xaAmpe/AVwKNY ftGTUsW29j2zHdBN6qEu+jphuH7UIXUN84pAlnyEK4GRm+0WIlAbueLye/gtHmjYgJ M87PjbRtP5fkw== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 1B0E390; Tue, 29 Jul 2025 20:22:24 +0200 (CEST) Date: Tue, 29 Jul 2025 20:22:24 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Jeff Davis Cc: Nathan Bossart , Robert Haas , Peter Eisentraut , pgsql-hackers Subject: Re: pg_dump --with-* options Message-ID: <202507291822.z4sc4ddvg2kx@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <13a2cd63ec37d42b65bde5dadc39b61861e97cbc.camel@j-davis.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Jul-29, Jeff Davis wrote: > + /* reject conflicting "only-" and "with-" options */ > + if (data_only && with_schema) > + pg_fatal("options -a/--data-only and --with-schema cannot be used together"); > + if (data_only && with_statistics) > + pg_fatal("options -a/--data-only and --with-statistics cannot be used together"); > + if (schema_only && with_data) > + pg_fatal("options -s/--schema-only and --with-data cannot be used together"); > + if (schema_only && with_statistics) > + pg_fatal("options -s/--schema-only and --with-statistics cannot be used together"); > + if (statistics_only && with_data) > + pg_fatal("options --statistics-only and --with-data cannot be used together"); > + if (statistics_only && with_schema) > + pg_fatal("options --statistics-only and --with-schema cannot be used together"); Please move the switches themselves out of the translatable message, otherwise there are too many of them. For instance, pg_fatal("options %s and %s cannot be used together", "-s/--schema-only", "--with-statistics"); Thanks -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/