Skip to content

Commit 256b4b0

Browse files
committed
pg_dump: Put new options in consistent order in --help and man page
1 parent 286eea5 commit 256b4b0

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

doc/src/sgml/ref/pg_dump.sgml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -256,27 +256,6 @@ PostgreSQL documentation
256256
</listitem>
257257
</varlistentry>
258258

259-
<varlistentry>
260-
<term><option>--exclude-extension=<replaceable class="parameter">pattern</replaceable></option></term>
261-
<listitem>
262-
<para>
263-
Do not dump any extensions matching <replaceable
264-
class="parameter">pattern</replaceable>. The pattern is
265-
interpreted according to the same rules as for <option>-e</option>.
266-
<option>--exclude-extension</option> can be given more than once to exclude extensions
267-
matching any of several patterns.
268-
</para>
269-
270-
<para>
271-
When both <option>-e</option> and <option>--exclude-extension</option> are given, the behavior
272-
is to dump just the extensions that match at least one <option>-e</option>
273-
switch but no <option>--exclude-extension</option> switches. If <option>--exclude-extension</option>
274-
appears without <option>-e</option>, then extensions matching <option>--exclude-extension</option> are
275-
excluded from what is otherwise a normal dump.
276-
</para>
277-
</listitem>
278-
</varlistentry>
279-
280259
<varlistentry>
281260
<term><option>-E <replaceable class="parameter">encoding</replaceable></option></term>
282261
<term><option>--encoding=<replaceable class="parameter">encoding</replaceable></option></term>
@@ -803,6 +782,27 @@ PostgreSQL documentation
803782
</listitem>
804783
</varlistentry>
805784

785+
<varlistentry>
786+
<term><option>--exclude-extension=<replaceable class="parameter">pattern</replaceable></option></term>
787+
<listitem>
788+
<para>
789+
Do not dump any extensions matching <replaceable
790+
class="parameter">pattern</replaceable>. The pattern is
791+
interpreted according to the same rules as for <option>-e</option>.
792+
<option>--exclude-extension</option> can be given more than once to exclude extensions
793+
matching any of several patterns.
794+
</para>
795+
796+
<para>
797+
When both <option>-e</option> and <option>--exclude-extension</option> are given, the behavior
798+
is to dump just the extensions that match at least one <option>-e</option>
799+
switch but no <option>--exclude-extension</option> switches. If <option>--exclude-extension</option>
800+
appears without <option>-e</option>, then extensions matching <option>--exclude-extension</option> are
801+
excluded from what is otherwise a normal dump.
802+
</para>
803+
</listitem>
804+
</varlistentry>
805+
806806
<varlistentry>
807807
<term><option>--exclude-table-and-children=<replaceable class="parameter">pattern</replaceable></option></term>
808808
<listitem>

src/bin/pg_dump/pg_dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,6 @@ help(const char *progname)
11151115
printf(_(" -c, --clean clean (drop) database objects before recreating\n"));
11161116
printf(_(" -C, --create include commands to create database in dump\n"));
11171117
printf(_(" -e, --extension=PATTERN dump the specified extension(s) only\n"));
1118-
printf(_(" --exclude-extension=PATTERN do NOT dump the specified extension(s)\n"));
11191118
printf(_(" -E, --encoding=ENCODING dump the data in encoding ENCODING\n"));
11201119
printf(_(" -n, --schema=PATTERN dump the specified schema(s) only\n"));
11211120
printf(_(" -N, --exclude-schema=PATTERN do NOT dump the specified schema(s)\n"));
@@ -1132,6 +1131,7 @@ help(const char *progname)
11321131
printf(_(" --disable-triggers disable triggers during data-only restore\n"));
11331132
printf(_(" --enable-row-security enable row security (dump only content user has\n"
11341133
" access to)\n"));
1134+
printf(_(" --exclude-extension=PATTERN do NOT dump the specified extension(s)\n"));
11351135
printf(_(" --exclude-table-and-children=PATTERN\n"
11361136
" do NOT dump the specified table(s), including\n"
11371137
" child and partition tables\n"));

0 commit comments

Comments
 (0)