From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow pg_dump to include/exclude child tables automatically.
Date: Tue, 14 Mar 2023 20:09:15 +0000
Message-ID: <E1pcAxO-003YLG-Gv@gemulon.postgresql.org> (raw)
Allow pg_dump to include/exclude child tables automatically.
This patch adds new pg_dump switches
--table-and-children=pattern
--exclude-table-and-children=pattern
--exclude-table-data-and-children=pattern
which act the same as the existing --table, --exclude-table, and
--exclude-table-data switches, except that any partitions or
inheritance child tables of the table(s) matching the pattern
are also included or excluded.
Gilles Darold, reviewed by Stéphane Tachoires
Discussion: https://postgr.es/m/5aa393b5-5f67-8447-b83e-544516990ee2@migops.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/a563c24c9574b74f4883c004c89275bba03c3c26
Modified Files
--------------
doc/src/sgml/ref/pg_dump.sgml | 42 ++-
src/bin/pg_dump/pg_dump.c | 86 ++++++-
src/bin/pg_dump/t/002_pg_dump.pl | 539 +++++++++++++++++++++++++++++++++------
3 files changed, 571 insertions(+), 96 deletions(-)
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: tgl@sss.pgh.pa.us, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Allow pg_dump to include/exclude child tables automatically.
In-Reply-To: <E1pcAxO-003YLG-Gv@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