pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Improve pg_restore's -t switch to match all types of relations.
Date: Thu, 02 Jul 2015 22:13:42 +0000
Message-ID: <E1ZAmjn-0003vX-02@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Improve pg_restore's -t switch to match all types of relations.

-t will now match views, foreign tables, materialized views, and sequences,
not only plain tables.  This is more useful, and also more consistent with
the behavior of pg_dump's -t switch, which has always matched all relation
types.

We're still not there on matching pg_dump's behavior entirely, so mention
that in the docs.

Craig Ringer, reviewed by Pavel Stehule

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5671aaca87c47128f6a1e0556ce9c7512096ad87

Modified Files
--------------
doc/src/sgml/ref/pg_dump.sgml        |    6 ++++--
doc/src/sgml/ref/pg_restore.sgml     |   39 +++++++++++++++++++++++++++++-----
src/bin/pg_dump/pg_backup_archiver.c |    8 ++++++-
src/bin/pg_dump/pg_restore.c         |    4 ++--
4 files changed, 47 insertions(+), 10 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1ZAmjn-0003vX-02@gemulon.postgresql.org>
Permalink:  ../E1ZAmjn-0003vX-02@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ZAmjn-0003vX-02@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Improve pg_restore's -t switch to match all types of relations.
  In-Reply-To: <E1ZAmjn-0003vX-02@gemulon.postgresql.org>
  References: <E1ZAmjn-0003vX-02@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