Add --exclude-database option to pg_dumpall

Enterprise / PostgreSQL - Andrew Dunstan [dunslane.net] - 1 March 2019 15:47 EST

This option functions similarly to pg_dump's --exclude-table option, but for database names. The option can be given once, and the argument can be a pattern including wildcard characters.

Author: Andrew Dunstan.

f092de0503 Add --exclude-database option to pg_dumpall
doc/src/sgml/ref/pg_dumpall.sgml | 21 +++++++++++
src/bin/pg_dump/pg_dump.c | 3 +-
src/bin/pg_dump/pg_dumpall.c | 78 ++++++++++++++++++++++++++++++++++++++++
src/bin/pg_dump/t/001_basic.pl | 13 ++++++-
src/bin/pg_dump/t/002_pg_dump.pl | 11 ++++++
5 files changed, 124 insertions(+), 2 deletions(-)

Upstream: git.postgresql.org


  • Share