From: Magnus Hagander Date: Tue, 6 Oct 2020 13:46:36 +0000 (+0200) Subject: Clarify documentation around pg_dump -t option X-Git-Tag: REL_14_BETA1~1543 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=b8c4d385120cb7fe70006812234b2cbc950f4a61;p=postgresql.git Clarify documentation around pg_dump -t option The behavior is different for different types of objects, so make that more clear. Author: Ian Barwick --- 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 Dump only tables with names matching - pattern. - For this purpose, table includes views, materialized views, - sequences, and foreign tables. Multiple tables + pattern. Multiple tables can be selected by writing multiple switches. The pattern parameter is interpreted as a pattern according to the same rules used by @@ -531,6 +529,14 @@ PostgreSQL documentation below. + + 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 + . + + The and switches have no effect when is used, because tables selected by will