pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pg_dump: Allow dumping data of specific foreign servers
Date: Wed, 25 Mar 2020 16:21:12 +0000
Message-ID: <E1jH8mG-0000Un-5G@gemulon.postgresql.org> (raw)

pg_dump: Allow dumping data of specific foreign servers

The new command-line switch --include-foreign-data=PATTERN lets the user
specify foreign servers from which to dump foreign table data.  This can
be refined by further inclusion/exclusion switches, so that the user has
full control over which tables to dump.

A limitation is that this doesn't work in combination with parallel
dumps, for implementation reasons.  This might be lifted in the future,
but requires shuffling some code around.

Author: Luis Carril <luis.carril@swarm64.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Surafel Temesgen <surafel3000@gmail.com>
Reviewed-by: vignesh C <vignesh21@gmail.com>
Reviewed-by: Álvaro Herrera <alvherre@2ndQuadrant.com>
Discussion: https://postgr.es/m/LEJPR01MB0185483C0079D2F651B16231E7FC0@LEJPR01MB0185.DEUPRD01.PROD.OUTLOOK.DE

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2f9eb31320948b968e5f744b73032405e1f25225

Modified Files
--------------
doc/src/sgml/ref/pg_dump.sgml                |  30 ++++++++
src/bin/pg_dump/pg_dump.c                    | 110 +++++++++++++++++++++++++--
src/bin/pg_dump/pg_dump.h                    |   1 +
src/bin/pg_dump/t/001_basic.pl               |  14 +++-
src/bin/pg_dump/t/003_pg_dump_with_server.pl |  36 +++++++++
5 files changed, 185 insertions(+), 6 deletions(-)



Message-ID: <E1jH8mG-0000Un-5G@gemulon.postgresql.org>
Permalink:  ../E1jH8mG-0000Un-5G@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jH8mG-0000Un-5G@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: pg_dump: Allow dumping data of specific foreign servers
  In-Reply-To: <E1jH8mG-0000Un-5G@gemulon.postgresql.org>
  References: <E1jH8mG-0000Un-5G@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