diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2016-09-20 12:00:00 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2016-09-20 12:00:00 -0400 |
commit | 46b55e7f853dc0ef60ae3b1042b883fa4ffac95f (patch) | |
tree | 3b0dc6a4221e701d08bfcdfc951adb1d8826558f /doc/src | |
parent | 16d1adb35cf887325b7c5dbf473632d557065171 (diff) | |
download | postgresql-46b55e7f853dc0ef60ae3b1042b883fa4ffac95f.tar.gz postgresql-46b55e7f853dc0ef60ae3b1042b883fa4ffac95f.zip |
pg_restore: Add -N option to exclude schemas
This is similar to the -N option in pg_dump, except that it doesn't take
a pattern, just like the existing -n option in pg_restore.
From: Michael Banck <michael.banck@credativ.de>
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/pg_restore.sgml | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/doc/src/sgml/ref/pg_restore.sgml b/doc/src/sgml/ref/pg_restore.sgml index c9069193afc..bd5b4053145 100644 --- a/doc/src/sgml/ref/pg_restore.sgml +++ b/doc/src/sgml/ref/pg_restore.sgml @@ -302,7 +302,7 @@ </varlistentry> <varlistentry> - <term><option>-n <replaceable class="parameter">namespace</replaceable></option></term> + <term><option>-n <replaceable class="parameter">schema</replaceable></option></term> <term><option>--schema=<replaceable class="parameter">schema</replaceable></option></term> <listitem> <para> @@ -315,6 +315,22 @@ </varlistentry> <varlistentry> + <term><option>-N <replaceable class="parameter">schema</replaceable></option></term> + <term><option>--exclude-schema=<replaceable class="parameter">schema</replaceable></option></term> + <listitem> + <para> + Do not restore objects that are in the named schema. Multiple schemas + to be excluded may be specified with multiple <option>-N</> switches. + </para> + + <para> + When both <option>-n</> and <option>-N</> are given for the same + schema name, the <option>-N</> switch wins and the schema is excluded. + </para> + </listitem> + </varlistentry> + + <varlistentry> <term><option>-O</option></term> <term><option>--no-owner</option></term> <listitem> |