Skip to content

Commit 0639f9b

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 e9703ce commit 0639f9b

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
@@ -516,9 +516,7 @@ PostgreSQL documentation
516516
<listitem>
517517
<para>
518518
Dump only tables with names matching
519-
<replaceable class="parameter">pattern</replaceable>.
520-
For this purpose, <quote>table</quote> includes views, materialized views,
521-
sequences, and foreign tables. Multiple tables
519+
<replaceable class="parameter">pattern</replaceable>. Multiple tables
522520
can be selected by writing multiple <option>-t</option> switches. The
523521
<replaceable class="parameter">pattern</replaceable> parameter is
524522
interpreted as a pattern according to the same rules used by
@@ -530,6 +528,14 @@ PostgreSQL documentation
530528
<xref linkend="pg-dump-examples"/> below.
531529
</para>
532530

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