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 1uPpLO-00GmNC-1w for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Jun 2025 21:20:18 +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 1uPpLM-00GAoy-3S for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Jun 2025 21:20:16 +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 1uPpLL-00GAop-Pl for pgsql-hackers@lists.postgresql.org; Thu, 12 Jun 2025 21:20:16 +0000 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uPpLK-001fp0-2G for pgsql-hackers@postgresql.org; Thu, 12 Jun 2025 21:20:15 +0000 Received: by mail-pg1-x533.google.com with SMTP id 41be03b00d2f7-af51596da56so1154578a12.0 for ; Thu, 12 Jun 2025 14:20:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1749763214; x=1750368014; darn=postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=I2xaopd5/bOf8CvuOhiDimS+SSUrCYa5JEAyDaozRNA=; b=EzdhUe9/1Ou5Ah/oA3P/ch7yllT9jFNXc6hn1nnZfm1Ga1IjhizD4iAsQLCiCCoy8B rLzV93ytGqvQpIfQHmWJYx4WVM0KFs8hlJkF3ROVHJh/MNFDY6NjB+xiZtKwHUsPI6JV EAwgjyBJik5NfeiSd8VIX2uctJ2TkfMWd6Udheyi2pUjbe6jFjmAH7AerSRBSr62n4/Y 5LHoJPy1EpCO92HPajlte92k7rS9JQpxumejTESdTnEJ1wyC/T3ZSu3pTXj49WAinUJE ODF9mXNn05aSFgDJg2je5T4TAMIq015UeSdLuhxZxlGV55FRmXsML6MFeGA4mTk/Iq18 353A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749763214; x=1750368014; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=I2xaopd5/bOf8CvuOhiDimS+SSUrCYa5JEAyDaozRNA=; b=od7Nc4A4uh9tinHjNxYqDJXL++aTFSTHOY+25ZcG5zavMM9IxmUYmsRVmt/zkllwxa Aln9awlwCTdgtma+z/wyhbh+sbZbhGmJexjm4UEi5GxL1IByBGWPxnteHzRRMdxh/+Nd ItQbwGW+ihJlchiQDt9AawRRS95uRfIWTgK5x1WUbTWAVRkK8J17+GwwoM68nMzx62JL JogWn80CVLO6sTxlvLNZN89BEtTsgmxXTUYRlYH6LSQvfj7stu/9qxy0uqtKP7WgeZhh WcChU3XUuAy0nzsZQkGx5g903DvQpYiA/y8EkYOx6X8+FmSr93FDv2/+zeTbOym3yLtC /DOg== X-Gm-Message-State: AOJu0Yy1B1vKlf4j6pWcnAcMmkrw5mCwBo4lGcxmwMCQgYgivjyYw0Rz JPFFgpAX5e5gadR5r66M1PFKAKj+U8SCIM2W9l1SWkqf1t+MFck6Nt6OalKGbfQF6nfWxeJFhe9 /F+M= X-Gm-Gg: ASbGncsZfNXQ7LLQpkoIro+5Yr/GmGm/U47TlqHTmzkeE912Bqec5LQsmXpXwcL1EYG 5pCPJmy4zRiRpf2kzqV3mf3kVr/5my8r+MZ8eYCSATAuRjm/vvNNNYQfjudC2BjRASQGeJbzAzd MI8qqij/tnMuOtOmiyN8g7mL+CB75N33SvURWyFBfegtKHwcxqlspAXxiOvhfC5HFgTEHwWSzb0 Xto3bilRUsYRJTs79GFalMhI5Alki5iIyYQVuHMKoVDYl5eARUWY6MufhqKR/3MKUmWctzHXu1J mHMOV19f8xHTzgxmae3EYzpHRnEOuazimILQMJuExKUpFrNDu4A8gPPEX4JH/dicICxu5GNsTGB QlbPXdkF2Hj7zwIsxuYzb5i7s8jBRC9KK X-Google-Smtp-Source: AGHT+IEqv5SXVsIhiPQe/wX/gPl4k7qbZSImY4Z2B89pcgU6VWxp+DT2xAQOqHwfWTI99K05qJgUwg== X-Received: by 2002:a17:90b:4d11:b0:311:af8c:51cd with SMTP id 98e67ed59e1d1-313d9eaebddmr990162a91.18.1749763213635; Thu, 12 Jun 2025 14:20:13 -0700 (PDT) Received: from jeff-ws-bridge.lan (c-76-102-242-158.hsd1.ca.comcast.net. [76.102.242.158]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-313c1b49834sm1994662a91.27.2025.06.12.14.20.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Jun 2025 14:20:12 -0700 (PDT) Message-ID: <8f4dc84b52165fa31402259b2ab45ae7a04dff42.camel@j-davis.com> Subject: Re: pg_dump --with-* options From: Jeff Davis To: Peter Eisentraut , Nathan Bossart Cc: pgsql-hackers Date: Thu, 12 Jun 2025 14:20:11 -0700 In-Reply-To: <350edd98-7e91-4b63-b393-ba8b681b0799@eisentraut.org> References: <7cc52488-f876-4ad3-affd-6e4b0ef0cb09@eisentraut.org> <17f63ecf-679c-4337-817f-908bb159701f@eisentraut.org> <350edd98-7e91-4b63-b393-ba8b681b0799@eisentraut.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.3-0ubuntu1 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2025-06-12 at 21:16 +0200, Peter Eisentraut wrote: > > Do we have other options that are order-sensitive? >=20 > I think most of them are.=C2=A0 For example: >=20 > psql -p 5432 -p 5433 > initdb --data-checksums --no-data-checksums > postgres --shared-buffers=3D1GB --shared-buffers=3D2GB Interesting. I don't think the "last option wins" model applies to other pg_dump options, though. For instance, in PG17: pg_dump --data-only --schema-only pg_dump: error: options -s/--schema-only and -a/--data-only cannot be used together I don't think it's simple to start using "last option wins" behavior now. There are probably some combinations of options where it's not clear whether a later option is an extra constraint or will override a previous option. Regards, Jeff Davis