pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Change pg_dump default for statistics export.
Date: Tue, 27 May 2025 20:57:06 +0000
Message-ID: <E1uK1M9-000KRx-1A@gemulon.postgresql.org> (raw)

Change pg_dump default for statistics export.

Set the default behavior of pg_dump and pg_dumpall to be
--no-statistics.

Leave the default for pg_restore and pg_upgrade to be
--with-statistics.

Discussion: https://postgr.es/m/CA+TgmoZ9=RnWcCOZiKYYjZs_AW1P4QXCw--h4dOLLHuf1Omung@mail.gmail.com
Reviewed-by: Greg Sabino Mullane <htamfids@gmail.com>
Reviewed-by: Nathan Bossart <nathandbossart@gmail.com>
Reviewed-by: Robert Haas <robertmhaas@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/34eb2a80d5a3ea1392e4a9f16ebac54e96d0c6ed

Modified Files
--------------
doc/src/sgml/ref/pg_dump.sgml        | 20 ++++++------
doc/src/sgml/ref/pg_dumpall.sgml     | 20 ++++++------
src/bin/pg_dump/pg_backup_archiver.c |  2 +-
src/bin/pg_dump/t/002_pg_dump.pl     | 59 ++++++++++++++++++++++++++++++++++++
src/bin/pg_upgrade/dump.c            |  2 +-
5 files changed, 81 insertions(+), 22 deletions(-)



Message-ID: <E1uK1M9-000KRx-1A@gemulon.postgresql.org>
Permalink:  ../E1uK1M9-000KRx-1A@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1uK1M9-000KRx-1A@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: jdavis@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Change pg_dump default for statistics export.
  In-Reply-To: <E1uK1M9-000KRx-1A@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox