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

Lines changed: 9 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy