Add --section option to pg_dump and pg_restore.
Andrew Dunstan <andrew@dunslane.net>
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.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/pg_dump.sgml | modified | +21 −3 |
| doc/src/sgml/ref/pg_restore.sgml | modified | +23 −0 |
| src/bin/pg_dump/common.c | modified | +1 −1 |
| src/bin/pg_dump/dumputils.c | modified | +30 −0 |
| src/bin/pg_dump/dumputils.h | modified | +1 −0 |
| src/bin/pg_dump/pg_backup_archiver.c | modified | +19 −0 |
| src/bin/pg_dump/pg_backup_archiver.h | modified | +3 −0 |
| src/bin/pg_dump/pg_backup.h | modified | +9 −0 |
| src/bin/pg_dump/pg_dump.c | modified | +47 −2 |
| src/bin/pg_dump/pg_restore.c | modified | +30 −0 |