Skip to content

Commit c50d4f4

Browse files
committed
doc: Mention all options equivalent to pg_dump --filter patterns.
In the documentation for pg_dump's new --filter option, added by commit a5cf808, each object pattern should match some other existing pg_dump option, but some had been omitted, so add them. Noted by Daniel Gustafsson, reviewed by Ayush Vatsa. Discussion: https://postgr.es/m/CAEZATCWtVUt51B6BjTUQoS4dcNyOBj%2B04ngL7HSH3ehBXTUt%3Dw%40mail.gmail.com
1 parent 3cb19f4 commit c50d4f4

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed

doc/src/sgml/ref/pg_dump.sgml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -866,13 +866,14 @@ PostgreSQL documentation
866866
same rules as the corresponding options:
867867
<option>-t</option>/<option>--table</option>,
868868
<option>--table-and-children</option>,
869-
<option>--exclude-table-and-children</option> or
870-
<option>-T</option> for tables,
871-
<option>-n</option>/<option>--schema</option> for schemas,
869+
<option>-T</option>/<option>--exclude-table</option>, and
870+
<option>--exclude-table-and-children</option> for tables,
871+
<option>-n</option>/<option>--schema</option> and
872+
<option>-N</option>/<option>--exclude-schema</option> for schemas,
872873
<option>--include-foreign-data</option> for data on foreign servers,
873-
<option>--exclude-table-data</option>,
874+
<option>--exclude-table-data</option> and
874875
<option>--exclude-table-data-and-children</option> for table data, and
875-
<option>-e</option>/<option>--extension</option> or
876+
<option>-e</option>/<option>--extension</option> and
876877
<option>--exclude-extension</option> for extensions.
877878
To read from <literal>STDIN</literal>, use <filename>-</filename> as the
878879
filename. The <option>--filter</option> option can be specified in
@@ -895,34 +896,37 @@ PostgreSQL documentation
895896
<itemizedlist>
896897
<listitem>
897898
<para>
898-
<literal>extension</literal>: extensions, works like the
899-
<option>-e</option>/<option>--extension</option> option.
899+
<literal>extension</literal>: extensions. This works like the
900+
<option>-e</option>/<option>--extension</option> or
901+
<option>--exclude-extension</option> option.
900902
</para>
901903
</listitem>
902904
<listitem>
903905
<para>
904-
<literal>foreign_data</literal>: data on foreign servers, works like
906+
<literal>foreign_data</literal>: data on foreign servers. This works like
905907
the <option>--include-foreign-data</option> option. This keyword can
906908
only be used with the <literal>include</literal> keyword.
907909
</para>
908910
</listitem>
909911
<listitem>
910912
<para>
911-
<literal>table</literal>: tables, works like the
912-
<option>-t</option>/<option>--table</option> option.
913+
<literal>table</literal>: tables. This works like the
914+
<option>-t</option>/<option>--table</option> or
915+
<option>-T</option>/<option>--exclude-table</option> option.
913916
</para>
914917
</listitem>
915918
<listitem>
916919
<para>
917920
<literal>table_and_children</literal>: tables including any partitions
918-
or inheritance child tables, works like the
919-
<option>--table-and-children</option> option.
921+
or inheritance child tables. This works like the
922+
<option>--table-and-children</option> or
923+
<option>--exclude-table-and-children</option> option.
920924
</para>
921925
</listitem>
922926
<listitem>
923927
<para>
924928
<literal>table_data</literal>: table data of any tables matching
925-
<replaceable>pattern</replaceable>, works like the
929+
<replaceable>pattern</replaceable>. This works like the
926930
<option>--exclude-table-data</option> option. This keyword can only
927931
be used with the <literal>exclude</literal> keyword.
928932
</para>
@@ -931,15 +935,16 @@ PostgreSQL documentation
931935
<para>
932936
<literal>table_data_and_children</literal>: table data of any tables
933937
matching <replaceable>pattern</replaceable> as well as any partitions
934-
or inheritance children of the table(s), works like the
938+
or inheritance children of the table(s). This works like the
935939
<option>--exclude-table-data-and-children</option> option. This
936940
keyword can only be used with the <literal>exclude</literal> keyword.
937941
</para>
938942
</listitem>
939943
<listitem>
940944
<para>
941-
<literal>schema</literal>: schemas, works like the
942-
<option>-n</option>/<option>--schema</option> option.
945+
<literal>schema</literal>: schemas. This works like the
946+
<option>-n</option>/<option>--schema</option> or
947+
<option>-N</option>/<option>--exclude-schema</option> option.
943948
</para>
944949
</listitem>
945950
</itemizedlist>

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