Skip site navigation (1) Skip section navigation (2)

pgsql: Add --section option to pg_dump and pg_restore.

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add --section option to pg_dump and pg_restore.
Date: 2011-12-17 00:17:13
Message-ID: E1Rbhxh-000203-Q6@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Add --section option to pg_dump and pg_restore.

Valid values are --pre-data, data and post-data. The option can be
given more than once. --schema-only is equivalent to
--section=pre-data --section=post-data. --data-only is equivalent
to --section=data.

Andrew Dunstan, reviewed by Joachim Wieland and Josh Berkus.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/a4cd6abcc901c1a8009c62a27f78696717bb8fe1

Modified Files
--------------
doc/src/sgml/ref/pg_dump.sgml        |   24 ++++++++++++++--
doc/src/sgml/ref/pg_restore.sgml     |   23 ++++++++++++++++
src/bin/pg_dump/common.c             |    2 +-
src/bin/pg_dump/dumputils.c          |   30 ++++++++++++++++++++
src/bin/pg_dump/dumputils.h          |    1 +
src/bin/pg_dump/pg_backup.h          |    9 ++++++
src/bin/pg_dump/pg_backup_archiver.c |   19 +++++++++++++
src/bin/pg_dump/pg_backup_archiver.h |    3 ++
src/bin/pg_dump/pg_dump.c            |   49 ++++++++++++++++++++++++++++++++-
src/bin/pg_dump/pg_restore.c         |   30 ++++++++++++++++++++
10 files changed, 184 insertions(+), 6 deletions(-)

Responses

pgsql-committers by date

Next:From: Thom BrownDate: 2011-12-17 00:57:59
Subject: Re: pgsql: Add --section option to pg_dump and pg_restore.
Previous:From: Heikki LinnakangasDate: 2011-12-16 13:08:16
Subject: pgsql: Fix reference to "verify-ca" and "verify-full" in a note inthe

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group