pg_amcheck: Put new options in consistent order in --help and man page
authorPeter Eisentraut <[email protected]>
Thu, 16 May 2024 09:29:41 +0000 (11:29 +0200)
committerPeter Eisentraut <[email protected]>
Thu, 16 May 2024 09:29:41 +0000 (11:29 +0200)
doc/src/sgml/ref/pg_amcheck.sgml
src/bin/pg_amcheck/pg_amcheck.c

index 2b9634b3ac2dfb87a51e5aeb95535a9f257bb8f4..6bfe28799c4e6a2d28face5e11adb5675d5e84ac 100644 (file)
@@ -383,6 +383,17 @@ PostgreSQL documentation
    The following command-line options control checking of B-tree indexes:
 
    <variablelist>
+    <varlistentry>
+     <term><option>--checkunique</option></term>
+     <listitem>
+      <para>
+       For each index with unique constraint checked, verify that no more than
+       one among duplicate entries is visible in the index using <xref linkend="amcheck"/>'s
+       <option>checkunique</option> option.
+      </para>
+     </listitem>
+    </varlistentry>
+
     <varlistentry>
      <term><option>--heapallindexed</option></term>
      <listitem>
@@ -432,17 +443,6 @@ PostgreSQL documentation
       </para>
      </listitem>
     </varlistentry>
-
-    <varlistentry>
-     <term><option>--checkunique</option></term>
-     <listitem>
-      <para>
-       For each index with unique constraint checked, verify that no more than
-       one among duplicate entries is visible in the index using <xref linkend="amcheck"/>'s
-       <option>checkunique</option> option.
-      </para>
-     </listitem>
-    </varlistentry>
    </variablelist>
   </para>
 
index 7e3101704d430f119f772071aff4a7921edc0b13..a1ad41e7664710b52e66a18bc391de08f9c76d05 100644 (file)
@@ -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"));