From 94af84f00c5fd3ea840759d85a73204d64e28248 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 16 May 2024 11:29:41 +0200 Subject: [PATCH] pg_amcheck: Put new options in consistent order in --help and man page --- doc/src/sgml/ref/pg_amcheck.sgml | 22 +++++++++++----------- src/bin/pg_amcheck/pg_amcheck.c | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/doc/src/sgml/ref/pg_amcheck.sgml b/doc/src/sgml/ref/pg_amcheck.sgml index 2b9634b3ac..6bfe28799c 100644 --- a/doc/src/sgml/ref/pg_amcheck.sgml +++ b/doc/src/sgml/ref/pg_amcheck.sgml @@ -383,6 +383,17 @@ PostgreSQL documentation The following command-line options control checking of B-tree indexes: + + + + + For each index with unique constraint checked, verify that no more than + one among duplicate entries is visible in the index using 's + option. + + + + @@ -432,17 +443,6 @@ PostgreSQL documentation - - - - - - For each index with unique constraint checked, verify that no more than - one among duplicate entries is visible in the index using 's - option. - - - diff --git a/src/bin/pg_amcheck/pg_amcheck.c b/src/bin/pg_amcheck/pg_amcheck.c index 7e3101704d..a1ad41e766 100644 --- a/src/bin/pg_amcheck/pg_amcheck.c +++ b/src/bin/pg_amcheck/pg_amcheck.c @@ -1205,10 +1205,10 @@ help(const char *progname) printf(_(" --startblock=BLOCK begin checking table(s) at the given block number\n")); printf(_(" --endblock=BLOCK check table(s) only up to the given block number\n")); printf(_("\nB-tree index checking options:\n")); + printf(_(" --checkunique check unique constraint if index is unique\n")); printf(_(" --heapallindexed check that all heap tuples are found within indexes\n")); printf(_(" --parent-check check index parent/child relationships\n")); printf(_(" --rootdescend search from root page to refind tuples\n")); - printf(_(" --checkunique check unique constraint if index is unique\n")); printf(_("\nConnection options:\n")); printf(_(" -h, --host=HOSTNAME database server host or socket directory\n")); printf(_(" -p, --port=PORT database server port\n"));