From 256b4b060614f4e54e49bb43a54404af4f1ef61d Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 24 Apr 2024 10:00:58 +0200 Subject: [PATCH] pg_dump: Put new options in consistent order in --help and man page --- doc/src/sgml/ref/pg_dump.sgml | 42 +++++++++++++++++------------------ src/bin/pg_dump/pg_dump.c | 2 +- 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 671df4b60e..08d775379f 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 b8acdd7355..242ebe807f 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"));