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 1uPjJ0-00Edln-QF for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Jun 2025 14:53:26 +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 1uPjIy-00DhMY-UR for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Jun 2025 14:53:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uPjIL-00DdU6-MC for pgsql-hackers@lists.postgresql.org; Thu, 12 Jun 2025 14:52:46 +0000 Received: from mail-io1-xd2e.google.com ([2607:f8b0:4864:20::d2e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uPjIK-001enS-0c for pgsql-hackers@postgresql.org; Thu, 12 Jun 2025 14:52:45 +0000 Received: by mail-io1-xd2e.google.com with SMTP id ca18e2360f4ac-86d013c5e79so97637439f.0 for ; Thu, 12 Jun 2025 07:52:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749739962; x=1750344762; darn=postgresql.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=kXrqJo6dKnTmaGxApWMx8D+347NDKnhSlAJwEqP1XJE=; b=G8TgqUWPP2pFBUUc0Vlj5icuQ/098ot8TeD8YLhZhHnI+SMQhxQ1Qa7g+PKTDF91pB 7q2PglV4jKeud2rpxWQLGCiyCgfCS++vGgHsmF56w8b9znG5KRg9xKxYJ7U4EDb/7L0Q 4z0AeL8/45w9VKwCBXjQ/iYWVf0HWAB52RtPgq9QGVoqciMT2V+EL/98+RTBotSuyIiv V9mRju2mFAh6v7jnJmaPlTTmoQ3ScyKkFCg9vC2adBkpORfxDOocAegjO/oL+OGV/v2O OmajoIWUS2zw1kMqdbXEz4XxmSZGEBF4EmjkpJTFQPwMWpYOvt1IQ95hBz3br8ngpLVP iA5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749739962; x=1750344762; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kXrqJo6dKnTmaGxApWMx8D+347NDKnhSlAJwEqP1XJE=; b=ilbpCg4Jegdr6iJoFTKUtf4v8/HtnVgjxgoVYTJGsGuY8tI2XNx+ZwEq+NBR9AfwGc igKj6csIoeCV2dm8asP7xlI4bUCaLGth9n4Hg1W8meWnAkC+R+mw61zOf+Tl8uLYk3JB jaEY2+yXruquiUyrEKQE/L3KWT1lsFVbQhNgehR7znEF0iOpvgSSWXkU6pZsbFOyW39E Bgst5y/LIRm3HIkpe92eDe6LYeuNj6BE/WuqNIlP627uEn991jlipl2kO/Jj9bZo73i/ 0HCGG+w2uU32bSD7Dm4uZi0nNdLYplHJMDfa+12Kn1cwXkfJH04u/81iUPrY8bOcV/Un gmlg== X-Forwarded-Encrypted: i=1; AJvYcCX7EwoLwrEjrSm6Um5PkgO/xV9i2DUAdRu/qeqYzUfcETN+YOu2upJD4SSbkY74cGOBkTBkmblZZ2m/eu18@postgresql.org X-Gm-Message-State: AOJu0YzTTTze47vNIf98pNhaAzHCauTIVh2Qf/N+A6sooh/l8GlQCE9q PjGOIUVw1ubEHaDjWBk0NjHoH5U0VEeDqfOoSsGB21p24shHC0GZQcYFs7sBtw== X-Gm-Gg: ASbGnctk9K/fEGOYcTu478udTYBcJpYywtT1LIgUZmU2oWfvfVyZRD4gRyIoCOwbTQ3 neAcPeoPxdKsR7l1unsBL/Stwpeth/CWU/27+0Sn+wBelAMTWqngusjPKx5by8WVFl6r/6lJF9N 3tka0in+qj86ytZFMNd7h3/Bktl7aY1k1MPchtMSheKzNBuEEuho+DLaFxDAFD37Tf3gsDwtsjG jWLw2PvUnBHSM/uRFum8NgVtv8uRqsjH07DuwhhMQ/SSS/LquPjKdMGtfJFvEORr8rHX2XxHf0D vxZvdXlYpkpUBUD/n6MLd7OE+RFK5SioFLDYhqX1rTsfXje6+CCQtjWhrv55PT9vX9+USoXQx3Q NvW8XAbMJsuzaiA3b2o6GSkYb/7YplZqK82VvbpqW24MUFeGsLe5y X-Google-Smtp-Source: AGHT+IFEvHciIiCrZ43yrf2ItoasnH8WmOC9OP+aENRDW31augttk2l1Wm+0wg+6Xh0Z9E1RwQ476w== X-Received: by 2002:a05:6602:4146:b0:875:ba23:a065 with SMTP id ca18e2360f4ac-875c5e57fe1mr515149239f.11.1749739962255; Thu, 12 Jun 2025 07:52:42 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-5013b799abfsm314324173.35.2025.06.12.07.52.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Jun 2025 07:52:41 -0700 (PDT) Date: Thu, 12 Jun 2025 09:52:40 -0500 From: Nathan Bossart To: Robert Haas Cc: Peter Eisentraut , pgsql-hackers , pgsql@j-davis.com Subject: Re: pg_dump --with-* options Message-ID: References: <7cc52488-f876-4ad3-affd-6e4b0ef0cb09@eisentraut.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Jun 12, 2025 at 10:18:56AM -0400, Robert Haas wrote: > On Fri, Jun 6, 2025 at 11:40 AM Nathan Bossart wrote: >> On Fri, Jun 06, 2025 at 09:14:32AM +0200, Peter Eisentraut wrote: >> > What is the purpose of the --with-data option? Dumping the data is the >> > default. Is this to override an earlier --no-data option? >> >> I believe the idea is that these will allow folks to be explicit about what >> they want instead of needing to understand the defaults for every >> component. > > Am I too late to propose ripping this out? > > I mean, if I look at pg_dump --help and there are options for > --with-broccoli and --without-mushrooms, I know that the defaults are > no brocooli, yes mushrooms, and I know which options I need to specify > to get the behavior that I want, whatever that happens to be. If all > options exist in both forms, it's a lot more confusing. Maybe there's > some issue of cross-version compatibility here that justifies this > complexity, but I don't see what it would be. I would think > --with-data has always been the default and always will be, so we just > don't need --with-data for anything. But maybe I'm confused. If the idea is to remove all options for default behavior, we'd be removing --no-statistics, --with-data, and --with-schema at this point. Maybe we could go a step further and even rip out --statistics-only (in favor of --no-schema --no-data --with-statistics). In general, I do think the list of pg_dump options is pretty unwieldy at this point. -- nathan