Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Clarify documentation around pg_dump -t option
authorMagnus Hagander <magnus@hagander.net>
Tue, 6 Oct 2020 13:46:36 +0000 (15:46 +0200)
committerMagnus Hagander <magnus@hagander.net>
Tue, 6 Oct 2020 13:47:24 +0000 (15:47 +0200)
The behavior is different for different types of objects, so make that
more clear.

Author: Ian Barwick

doc/src/sgml/ref/pg_dump.sgml

index 3e48498db28fac2c8ae176d4150f2564ac7b2dc5..478686e15dad57e9bc3ec89c2546a2d15ed185c7 100644 (file)
@@ -516,9 +516,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
@@ -530,6 +528,14 @@ PostgreSQL documentation
         <xref linkend="pg-dump-examples"/> below.
        </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