mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Add --exclude-table-data option to pg_dump.
Andrew Dunstan, reviewed by Josh Berkus, Robert Haas and Peter Geoghegan. This allows dumping of a table definition but not its data, on a per table basis. Table name patterns are supported just as for --exclude-table.
This commit is contained in:
@ -404,6 +404,10 @@ PostgreSQL documentation
|
||||
<para>
|
||||
Dump only the object definitions (schema), not data.
|
||||
</para>
|
||||
<para>
|
||||
To exclude table data for only a subset of tables in the database,
|
||||
see <option>--exclude-table-data</>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
@ -611,6 +615,24 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--exclude-table-data=<replaceable class="parameter">table</replaceable></option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Do not dump data for any tables matching the <replaceable
|
||||
class="parameter">table</replaceable> pattern. The pattern is
|
||||
interpreted according to the same rules as for <option>-t</>.
|
||||
<option>--exclude-table-data</> can be given more than once to
|
||||
exclude tables matching any of several patterns. This option is
|
||||
useful when you need the definition of a particular table even
|
||||
though you do not need the data in it.
|
||||
</para>
|
||||
<para>
|
||||
To exclude data for all tables in the database, see <option>--schema-only</>.
|
||||
<para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--inserts</option></term>
|
||||
<listitem>
|
||||
|
Reference in New Issue
Block a user