Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b8c4d38

Browse files
committed
Clarify documentation around pg_dump -t option
The behavior is different for different types of objects, so make that more clear. Author: Ian Barwick
1 parent 5b36221 commit b8c4d38

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

doc/src/sgml/ref/pg_dump.sgml

+9-3
Original file line numberDiff line numberDiff line change
@@ -517,9 +517,7 @@ PostgreSQL documentation
517517
<listitem>
518518
<para>
519519
Dump only tables with names matching
520-
<replaceable class="parameter">pattern</replaceable>.
521-
For this purpose, <quote>table</quote> includes views, materialized views,
522-
sequences, and foreign tables. Multiple tables
520+
<replaceable class="parameter">pattern</replaceable>. Multiple tables
523521
can be selected by writing multiple <option>-t</option> switches. The
524522
<replaceable class="parameter">pattern</replaceable> parameter is
525523
interpreted as a pattern according to the same rules used by
@@ -531,6 +529,14 @@ PostgreSQL documentation
531529
<xref linkend="pg-dump-examples"/> below.
532530
</para>
533531

532+
<para>
533+
As well as tables, this option can be used to dump views, materialized views,
534+
foreign tables, and sequence definitions. However it will not dump the contents
535+
of views or materialized views, and the contents of foreign tables will only be
536+
dumped if the corresponding foreign server is specified with
537+
<option>--include-foreign-data</option>.
538+
</para>
539+
534540
<para>
535541
The <option>-n</option> and <option>-N</option> switches have no effect when
536542
<option>-t</option> is used, because tables selected by <option>-t</option> will

0 commit comments

Comments
 (0)