Change pg_dump default for statistics export.
authorJeff Davis <jdavis@postgresql.org>
Tue, 27 May 2025 19:53:10 +0000 (12:53 -0700)
committerJeff Davis <jdavis@postgresql.org>
Tue, 27 May 2025 20:54:38 +0000 (13:54 -0700)
commit34eb2a80d5a3ea1392e4a9f16ebac54e96d0c6ed
tree1abbe0742dc1a322bad10e4fcfe365ceadecab53
parent4c08ecd1618e3c5da664ba24a4aa7052772c4616
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>
doc/src/sgml/ref/pg_dump.sgml
doc/src/sgml/ref/pg_dumpall.sgml
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/t/002_pg_dump.pl
src/bin/pg_upgrade/dump.c