mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Check existency of table/schema for -t/-n option (pg_dump/pg_restore)
Patch provides command line option --strict-names which requires that at least one table/schema should present for each -t/-n option. Pavel Stehule <pavel.stehule@gmail.com>
This commit is contained in:
@ -544,6 +544,23 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--strict-names</></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Require that each schema (-n / --schema) and table (-t / --table)
|
||||
qualifier match at least one schema/table in the database to be dumped.
|
||||
Note that if none of the schema/table qualifiers find matches pg_dump
|
||||
will generate an error even without --strict-names.
|
||||
</para>
|
||||
<para>
|
||||
This option has no effect on -N/--exclude-schema, -T/--exclude_table
|
||||
or --exclude-table-date. An exclude pattern failing to match
|
||||
any objects is not considered an error.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-T <replaceable class="parameter">table</replaceable></option></term>
|
||||
<term><option>--exclude-table=<replaceable class="parameter">table</replaceable></option></term>
|
||||
|
@ -431,6 +431,16 @@
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--strict-names</></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Require that each schema (-n / --schema) and table (-t / --table)
|
||||
qualifier match at least one schema/table in the backup file.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-T <replaceable class="parameter">trigger</replaceable></option></term>
|
||||
<term><option>--trigger=<replaceable class="parameter">trigger</replaceable></option></term>
|
||||
|
Reference in New Issue
Block a user