aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2024-04-24 10:00:58 +0200
committerPeter Eisentraut <peter@eisentraut.org>2024-04-24 10:00:58 +0200
commit256b4b060614f4e54e49bb43a54404af4f1ef61d (patch)
tree6a804f6955e96e897078a49f8cfd9a1d9fe1c32e
parent286eea5d3ae33a8c22d46a051f8ac6069c8b779d (diff)
downloadpostgresql-256b4b060614f4e54e49bb43a54404af4f1ef61d.tar.gz
postgresql-256b4b060614f4e54e49bb43a54404af4f1ef61d.zip
pg_dump: Put new options in consistent order in --help and man page
-rw-r--r--doc/src/sgml/ref/pg_dump.sgml42
-rw-r--r--src/bin/pg_dump/pg_dump.c2
2 files changed, 22 insertions, 22 deletions
diff --git a/doc/src/sgml/ref/pg_dump.sgml b/doc/src/sgml/ref/pg_dump.sgml
index 671df4b60ef..08d775379fd 100644
--- a/doc/src/sgml/ref/pg_dump.sgml
+++ b/doc/src/sgml/ref/pg_dump.sgml
@@ -257,27 +257,6 @@ PostgreSQL documentation
</varlistentry>
<varlistentry>
- <term><option>--exclude-extension=<replaceable class="parameter">pattern</replaceable></option></term>
- <listitem>
- <para>
- Do not dump any extensions matching <replaceable
- class="parameter">pattern</replaceable>. The pattern is
- interpreted according to the same rules as for <option>-e</option>.
- <option>--exclude-extension</option> can be given more than once to exclude extensions
- matching any of several patterns.
- </para>
-
- <para>
- When both <option>-e</option> and <option>--exclude-extension</option> are given, the behavior
- is to dump just the extensions that match at least one <option>-e</option>
- switch but no <option>--exclude-extension</option> switches. If <option>--exclude-extension</option>
- appears without <option>-e</option>, then extensions matching <option>--exclude-extension</option> are
- excluded from what is otherwise a normal dump.
- </para>
- </listitem>
- </varlistentry>
-
- <varlistentry>
<term><option>-E <replaceable class="parameter">encoding</replaceable></option></term>
<term><option>--encoding=<replaceable class="parameter">encoding</replaceable></option></term>
<listitem>
@@ -804,6 +783,27 @@ PostgreSQL documentation
</varlistentry>
<varlistentry>
+ <term><option>--exclude-extension=<replaceable class="parameter">pattern</replaceable></option></term>
+ <listitem>
+ <para>
+ Do not dump any extensions matching <replaceable
+ class="parameter">pattern</replaceable>. The pattern is
+ interpreted according to the same rules as for <option>-e</option>.
+ <option>--exclude-extension</option> can be given more than once to exclude extensions
+ matching any of several patterns.
+ </para>
+
+ <para>
+ When both <option>-e</option> and <option>--exclude-extension</option> are given, the behavior
+ is to dump just the extensions that match at least one <option>-e</option>
+ switch but no <option>--exclude-extension</option> switches. If <option>--exclude-extension</option>
+ appears without <option>-e</option>, then extensions matching <option>--exclude-extension</option> are
+ excluded from what is otherwise a normal dump.
+ </para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><option>--exclude-table-and-children=<replaceable class="parameter">pattern</replaceable></option></term>
<listitem>
<para>
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index b8acdd73551..242ebe807f5 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -1115,7 +1115,6 @@ help(const char *progname)
printf(_(" -c, --clean clean (drop) database objects before recreating\n"));
printf(_(" -C, --create include commands to create database in dump\n"));
printf(_(" -e, --extension=PATTERN dump the specified extension(s) only\n"));
- printf(_(" --exclude-extension=PATTERN do NOT dump the specified extension(s)\n"));
printf(_(" -E, --encoding=ENCODING dump the data in encoding ENCODING\n"));
printf(_(" -n, --schema=PATTERN dump the specified schema(s) only\n"));
printf(_(" -N, --exclude-schema=PATTERN do NOT dump the specified schema(s)\n"));
@@ -1132,6 +1131,7 @@ help(const char *progname)
printf(_(" --disable-triggers disable triggers during data-only restore\n"));
printf(_(" --enable-row-security enable row security (dump only content user has\n"
" access to)\n"));
+ printf(_(" --exclude-extension=PATTERN do NOT dump the specified extension(s)\n"));
printf(_(" --exclude-table-and-children=PATTERN\n"
" do NOT dump the specified table(s), including\n"
" child and partition tables\n"));