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 1ugp0X-007eO7-4E for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Jul 2025 18:25:01 +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 1ugp0W-003h4p-88 for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Jul 2025 18:25:00 +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 1ugp0V-003h4h-VA for pgsql-hackers@lists.postgresql.org; Tue, 29 Jul 2025 18:25:00 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1ugp0T-001WvQ-0m for pgsql-hackers@postgresql.org; Tue, 29 Jul 2025 18:24:59 +0000 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-2401b855980so1649035ad.1 for ; Tue, 29 Jul 2025 11:24:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1753813496; x=1754418296; 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=kpBamhD2y1RmCs/qQXlKqg+v1EBaN17rV65qP2qH87o=; b=KVnEEODhTGouYKS/LM90L24SFlxPCbVGT0sYkifx/cyCacxOePC/nOdK9WoPP3Fhzc OdZfyd6VRc9mtgtJJEJio0LFuNzakzjHcWs6K16a5k0qoBwfGPcKfVAuUDDvgNFCCo0P GPVrNIek2u5NKrMWsXgFahBefeL//GmfNf/+RxSjqhR+kLlHXR6dzlbxHGsXwXOxvOX5 JFUlD9DRPYZ5ApRHSYQOkqI/ECvuhTRPlKU1r6e+jcxHAt/aRENR0FwXOSJ1pSAjpoSv SNti4OFkcOjM+5waD/NT2Ahn3pHLV5n7hCRhYqoHGTIesBJG7a5cZ0KG+uYZqXDX8Eoj +M/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753813496; x=1754418296; 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=kpBamhD2y1RmCs/qQXlKqg+v1EBaN17rV65qP2qH87o=; b=K1i+WVxCXBDCUCOJk7mJASbukX4FEN7i9/JY8thYf4PzCmiENr4zD1trjZsuzGu+UN oIhtOdBDM3W0GuLUSQuq5ZKaG/vfdguoafgMgQUP+1hYgZdLdH8znfc/07fxdFrw5WpA dPqmcBVeZ9REeozIYPXtLfhHOjSmAAeFUMZ8NPZs5noHI2CnwWpvPU2Y/jA3DTKzwDyX 4OgEobWjsa+lnscnAW8NaxkJhIS93S6COKyY1zZ+C6fhIyH3gNd/9DEZTeGjOqbkyTtd HPA8QCZsGboZ6cyEHMg7XQJNj8TAWPMkwdp0LKH+DzuzPxEqMYYF8ssVwvpbHEVQkgLS xPNA== X-Forwarded-Encrypted: i=1; AJvYcCVrlGblpjIwb8UrGTHh+P5TYTZEJsjqXRkxy8PETnW/TGqwMcjYnomob/IBWw9Dc9rkijdNbVbjrZKFvQtt@postgresql.org X-Gm-Message-State: AOJu0YyCj9Z9bUzUy8RMRlQUbnYrO3/fuE0lusXJ8WNLYdGXzbReSgEL 53pQEgahGsKdLwpH4WuIuvzxWer0JWArvHuHVqL7KlrbzyMKYaVfUtBGS2bjCwuiLg== X-Gm-Gg: ASbGncuNl9CaIR8o7cIt6OMIg1CCIMT5tmaICeJI2mrvS/Bvo+Vs9HKsIpTJTHiTk4F +1WMWvfDZAmK1DaVdCisz63q0/xs8fcJnozwIdHnetQadiGEaoB1SryEdnGOoLJqAK7Cwc/OcSX Yvwyzf3MKxwgGjTONaL4S1m2JEVS72rTHl+AMxyzUaRcIEC3fpsygD8V0UU0zHxelh0dk8QVlop Mql+aJD53ocCs9+qmK980G5IU1a1eWMY9mwPAzdC7UFYdwQ6hM5jpl68ggKabqijlw5c//hWhOD e+IymlPhpsYEh1zx/KJzYcb5zgvotzLSodrb81viZ/lpsf6ZnePg/0Ic9rc3Qp7kMrWiMdn6fpv QFNgLriedll5HbkwzZXAVrhs= X-Google-Smtp-Source: AGHT+IGsTBmHj7yMO4WmBqv2rILdn39GiUFqq4WspKi9rPx1hW5mxsh3+UlU8WpTbyKUFD80cOFJ/Q== X-Received: by 2002:a17:902:e811:b0:234:ba37:87ae with SMTP id d9443c01a7336-24096a47369mr6761505ad.4.1753813496118; Tue, 29 Jul 2025 11:24:56 -0700 (PDT) Received: from [172.24.2.126] ([12.126.244.130]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-240765051e6sm19639195ad.82.2025.07.29.11.24.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Jul 2025 11:24:55 -0700 (PDT) Message-ID: Subject: Re: pg_dump --with-* options From: Jeff Davis To: Nathan Bossart Cc: Robert Haas , Peter Eisentraut , pgsql-hackers Date: Tue, 29 Jul 2025 11:24:54 -0700 In-Reply-To: <031558c60e84362898922caa6a90587e7fdf2a57.camel@j-davis.com> References: <7cc52488-f876-4ad3-affd-6e4b0ef0cb09@eisentraut.org> <7bf0246542713d80f12c738c1d365d1365750c18.camel@j-davis.com> <5e398522803da9bf3f9fc33ca43084ec21ab0fcd.camel@j-davis.com> <031558c60e84362898922caa6a90587e7fdf2a57.camel@j-davis.com> 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 Wed, 2025-06-18 at 10:21 -0700, Jeff Davis wrote: > On Wed, 2025-06-18 at 10:43 -0500, Nathan Bossart wrote: > > IIUC the current proposal is to: > >=20 > > * Dump/restore stats by default. We don't have a consensus for that, so unless a few people make an abrupt turnaround, this will remain off for v18. > > * Keep the --no-statistics, --no-schema, and --no-data options. > > * Keep the --statistics-only, --schema-only, and --data-only > > options. > > * Remove the --with-statistics, --with-schema, and --with-data > > options. The other parts of the proposal are very similar with mine below: > =C2=A0 * delete the --with-data and --with-schema options as unnecessary > =C2=A0 * (maybe?) rename --with-statistics to --statistics > =C2=A0 * keep --no-statistics, --no-data, --no-schema (or use "without" > instead?) > =C2=A0 * (maybe?) keep --statistics-only > =C2=A0 * reject the combination of an "only" option and a "with" option The main difference is whether we: (a) keep both --statistics and --no-statistics in pg_dump and pg_restore; or (b) for pg_dump have --statistics but not --no-statistics and for pg_restore have --no-statistics but not --statistics. Option (a) creates redundancies whereas (b) creates a divergence. I suppose I prefer (a), but I don't have a terribly strong opinion and if more people prefer (b) then I'll go with that. Regards, Jeff Davis