]> granicus.if.org Git - postgresql/commitdiff
Use -Z for vacuumdb --analyze-only, rather than -o.
authorBruce Momjian <bruce@momjian.us>
Thu, 7 Jan 2010 14:35:44 +0000 (14:35 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 7 Jan 2010 14:35:44 +0000 (14:35 +0000)
doc/src/sgml/ref/vacuumdb.sgml
src/bin/scripts/vacuumdb.c

index f1c8c03846bd39780b2546ec75a1f03265cb2df4..b276c5df006aedd8ec46abee4f257554a0d8d6f8 100644 (file)
@@ -1,5 +1,5 @@
 <!--
-$PostgreSQL: pgsql/doc/src/sgml/ref/vacuumdb.sgml,v 1.48 2010/01/07 12:38:55 momjian Exp $
+$PostgreSQL: pgsql/doc/src/sgml/ref/vacuumdb.sgml,v 1.49 2010/01/07 14:35:44 momjian Exp $
 PostgreSQL documentation
 -->
 
@@ -28,7 +28,7 @@ PostgreSQL documentation
    <group><arg>--freeze</arg><arg>-F</arg></group>
    <group><arg>--verbose</arg><arg>-v</arg></group>
    <group><arg>--analyze</arg><arg>-z</arg></group>
-   <group><arg>--analyze-only</arg><arg>-o</arg></group>
+   <group><arg>--analyze-only</arg><arg>-Z</arg></group>
    <arg>--table | -t <replaceable>table</replaceable>
     <arg>( <replaceable class="parameter">column</replaceable> [,...] )</arg>
    </arg>
@@ -42,7 +42,7 @@ PostgreSQL documentation
    <group><arg>--freeze</arg><arg>-F</arg></group>
    <group><arg>--verbose</arg><arg>-v</arg></group>
    <group><arg>--analyze</arg><arg>-z</arg></group>
-   <group><arg>--analyze-only</arg><arg>-o</arg></group>
+   <group><arg>--analyze-only</arg><arg>-Z</arg></group>
   </cmdsynopsis>
  </refsynopsisdiv>
  
@@ -142,7 +142,7 @@ PostgreSQL documentation
      </varlistentry>
 
      <varlistentry>
-      <term><option>-o</option></term>
+      <term><option>-Z</option></term>
       <term><option>--analyze-only</option></term>
       <listitem>
        <para>
index 82fb154fe035c568a89dd63515d7213f3c514aa1..a70d26429bdece661c7ecf86278c0d0c2f82fcd4 100644 (file)
@@ -5,7 +5,7 @@
  * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/bin/scripts/vacuumdb.c,v 1.32 2010/01/07 12:38:55 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/scripts/vacuumdb.c,v 1.33 2010/01/07 14:35:44 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -41,7 +41,7 @@ main(int argc, char *argv[])
                {"quiet", no_argument, NULL, 'q'},
                {"dbname", required_argument, NULL, 'd'},
                {"analyze", no_argument, NULL, 'z'},
-               {"analyze-only", no_argument, NULL, 'o'},
+               {"analyze-only", no_argument, NULL, 'Z'},
                {"freeze", no_argument, NULL, 'F'},
                {"all", no_argument, NULL, 'a'},
                {"table", required_argument, NULL, 't'},
@@ -107,7 +107,7 @@ main(int argc, char *argv[])
                        case 'z':
                                and_analyze = true;
                                break;
-                       case 'o':
+                       case 'Z':
                                analyze_only = true;
                                break;
                        case 'F':
@@ -351,11 +351,11 @@ help(const char *progname)
        printf(_("  -f, --full                      do full vacuuming\n"));
        printf(_("  -F, --freeze                    freeze row transaction information\n"));
        printf(_("  -i, --inplace                   do full inplace vacuuming\n"));
-       printf(_("  -o, --analyze-only              only update optimizer hints\n"));
        printf(_("  -q, --quiet                     don't write any messages\n"));
        printf(_("  -t, --table='TABLE[(COLUMNS)]'  vacuum specific table only\n"));
        printf(_("  -v, --verbose                   write a lot of output\n"));
        printf(_("  -z, --analyze                   update optimizer hints\n"));
+       printf(_("  -Z, --analyze-only              only update optimizer hints\n"));
        printf(_("  --help                          show this help, then exit\n"));
        printf(_("  --version                       output version information, then exit\n"));
        printf(_("\nConnection options:\n"));