Add --section option to pg_dump and pg_restore.
authorAndrew Dunstan <andrew@dunslane.net>
Sat, 17 Dec 2011 00:09:38 +0000 (19:09 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Sat, 17 Dec 2011 00:09:38 +0000 (19:09 -0500)
commita4cd6abcc901c1a8009c62a27f78696717bb8fe1
tree5e595245b8e855b27c8b13bbc1e9a36f7fe80da8
parent4b43b48c9f05d7bfc5d20fdf53c8fb966d704312
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.
doc/src/sgml/ref/pg_dump.sgml
doc/src/sgml/ref/pg_restore.sgml
src/bin/pg_dump/common.c
src/bin/pg_dump/dumputils.c
src/bin/pg_dump/dumputils.h
src/bin/pg_dump/pg_backup.h
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/pg_backup_archiver.h
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_restore.c