From 6fb791199db1fd6650829cd39d9c26210c09e150 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 7 Jan 2010 14:35:44 +0000 Subject: [PATCH] Use -Z for vacuumdb --analyze-only, rather than -o. --- doc/src/sgml/ref/vacuumdb.sgml | 8 ++++---- src/bin/scripts/vacuumdb.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/src/sgml/ref/vacuumdb.sgml b/doc/src/sgml/ref/vacuumdb.sgml index f1c8c03846..b276c5df00 100644 --- a/doc/src/sgml/ref/vacuumdb.sgml +++ b/doc/src/sgml/ref/vacuumdb.sgml @@ -1,5 +1,5 @@ @@ -28,7 +28,7 @@ PostgreSQL documentation --freeze-F --verbose-v --analyze-z - --analyze-only-o + --analyze-only-Z --table | -t table ( column [,...] ) @@ -42,7 +42,7 @@ PostgreSQL documentation --freeze-F --verbose-v --analyze-z - --analyze-only-o + --analyze-only-Z @@ -142,7 +142,7 @@ PostgreSQL documentation - + diff --git a/src/bin/scripts/vacuumdb.c b/src/bin/scripts/vacuumdb.c index 82fb154fe0..a70d26429b 100644 --- a/src/bin/scripts/vacuumdb.c +++ b/src/bin/scripts/vacuumdb.c @@ -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")); -- 2.40.0