aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2020-10-06 15:46:36 +0200
committerMagnus Hagander <magnus@hagander.net>2020-10-06 15:46:36 +0200
commitb8c4d385120cb7fe70006812234b2cbc950f4a61 (patch)
tree728e3b23da7d8854006d2a18dd29b6b7fa515468 /doc/src
parent5b36221c46f9ca9c5df6a6e108790b5c6c5d2cc3 (diff)
downloadpostgresql-b8c4d385120cb7fe70006812234b2cbc950f4a61.tar.gz
postgresql-b8c4d385120cb7fe70006812234b2cbc950f4a61.zip
Clarify documentation around pg_dump -t option
The behavior is different for different types of objects, so make that more clear. Author: Ian Barwick
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/ref/pg_dump.sgml12
1 files changed, 9 insertions, 3 deletions
diff --git a/doc/src/sgml/ref/pg_dump.sgml b/doc/src/sgml/ref/pg_dump.sgml
index 1400cf87759..e783d5efa0c 100644
--- a/doc/src/sgml/ref/pg_dump.sgml
+++ b/doc/src/sgml/ref/pg_dump.sgml
@@ -517,9 +517,7 @@ PostgreSQL documentation
<listitem>
<para>
Dump only tables with names matching
- <replaceable class="parameter">pattern</replaceable>.
- For this purpose, <quote>table</quote> includes views, materialized views,
- sequences, and foreign tables. Multiple tables
+ <replaceable class="parameter">pattern</replaceable>. Multiple tables
can be selected by writing multiple <option>-t</option> switches. The
<replaceable class="parameter">pattern</replaceable> parameter is
interpreted as a pattern according to the same rules used by
@@ -532,6 +530,14 @@ PostgreSQL documentation
</para>
<para>
+ As well as tables, this option can be used to dump views, materialized views,
+ foreign tables, and sequence definitions. However it will not dump the contents
+ of views or materialized views, and the contents of foreign tables will only be
+ dumped if the corresponding foreign server is specified with
+ <option>--include-foreign-data</option>.
+ </para>
+
+ <para>
The <option>-n</option> and <option>-N</option> switches have no effect when
<option>-t</option> is used, because tables selected by <option>-t</option> will
be dumped regardless of those switches, and non-table objects will not