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
@@ -256,27 +256,6 @@ PostgreSQL documentation
-
-
-
-
- Do not dump any extensions matching pattern. The pattern is
- interpreted according to the same rules as for .
- can be given more than once to exclude extensions
- matching any of several patterns.
-
-
-
- When both and are given, the behavior
- is to dump just the extensions that match at least one
- switch but no switches. If
- appears without , then extensions matching are
- excluded from what is otherwise a normal dump.
-
-
-
-
@@ -803,6 +782,27 @@ PostgreSQL documentation
+
+
+
+
+ Do not dump any extensions matching pattern. The pattern is
+ interpreted according to the same rules as for .
+ can be given more than once to exclude extensions
+ matching any of several patterns.
+
+
+
+ When both and are given, the behavior
+ is to dump just the extensions that match at least one
+ switch but no switches. If
+ appears without , then extensions matching are
+ excluded from what is otherwise a normal dump.
+
+
+
+
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"));