diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2011-12-14 09:23:17 -0500 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2011-12-14 09:23:17 -0500 |
commit | 7b070e896ca835318c90b02c830a5c4844413b64 (patch) | |
tree | ee52fe2b89bee91a9f3bc5256b211ee0b7b5a1dd /doc/src | |
parent | 4adead1d224278ff3064636063a818eba17cb211 (diff) | |
download | postgresql-7b070e896ca835318c90b02c830a5c4844413b64.tar.gz postgresql-7b070e896ca835318c90b02c830a5c4844413b64.zip |
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.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/pg_dump.sgml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/pg_dump.sgml b/doc/src/sgml/ref/pg_dump.sgml index f6f33de7e7e..98f0ec68f8f 100644 --- a/doc/src/sgml/ref/pg_dump.sgml +++ b/doc/src/sgml/ref/pg_dump.sgml @@ -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> @@ -612,6 +616,24 @@ PostgreSQL documentation </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> <para> |