Skip to content

Commit 6fb7911

Browse files
committed
Use -Z for vacuumdb --analyze-only, rather than -o.
1 parent 1a8d4c9 commit 6fb7911

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

doc/src/sgml/ref/vacuumdb.sgml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/vacuumdb.sgml,v 1.48 2010/01/07 12:38:55 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/vacuumdb.sgml,v 1.49 2010/01/07 14:35:44 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -28,7 +28,7 @@ PostgreSQL documentation
2828
<group><arg>--freeze</arg><arg>-F</arg></group>
2929
<group><arg>--verbose</arg><arg>-v</arg></group>
3030
<group><arg>--analyze</arg><arg>-z</arg></group>
31-
<group><arg>--analyze-only</arg><arg>-o</arg></group>
31+
<group><arg>--analyze-only</arg><arg>-Z</arg></group>
3232
<arg>--table | -t <replaceable>table</replaceable>
3333
<arg>( <replaceable class="parameter">column</replaceable> [,...] )</arg>
3434
</arg>
@@ -42,7 +42,7 @@ PostgreSQL documentation
4242
<group><arg>--freeze</arg><arg>-F</arg></group>
4343
<group><arg>--verbose</arg><arg>-v</arg></group>
4444
<group><arg>--analyze</arg><arg>-z</arg></group>
45-
<group><arg>--analyze-only</arg><arg>-o</arg></group>
45+
<group><arg>--analyze-only</arg><arg>-Z</arg></group>
4646
</cmdsynopsis>
4747
</refsynopsisdiv>
4848

@@ -142,7 +142,7 @@ PostgreSQL documentation
142142
</varlistentry>
143143

144144
<varlistentry>
145-
<term><option>-o</option></term>
145+
<term><option>-Z</option></term>
146146
<term><option>--analyze-only</option></term>
147147
<listitem>
148148
<para>

src/bin/scripts/vacuumdb.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
8-
* $PostgreSQL: pgsql/src/bin/scripts/vacuumdb.c,v 1.32 2010/01/07 12:38:55 momjian Exp $
8+
* $PostgreSQL: pgsql/src/bin/scripts/vacuumdb.c,v 1.33 2010/01/07 14:35:44 momjian Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -41,7 +41,7 @@ main(int argc, char *argv[])
4141
{"quiet", no_argument, NULL, 'q'},
4242
{"dbname", required_argument, NULL, 'd'},
4343
{"analyze", no_argument, NULL, 'z'},
44-
{"analyze-only", no_argument, NULL, 'o'},
44+
{"analyze-only", no_argument, NULL, 'Z'},
4545
{"freeze", no_argument, NULL, 'F'},
4646
{"all", no_argument, NULL, 'a'},
4747
{"table", required_argument, NULL, 't'},
@@ -107,7 +107,7 @@ main(int argc, char *argv[])
107107
case 'z':
108108
and_analyze = true;
109109
break;
110-
case 'o':
110+
case 'Z':
111111
analyze_only = true;
112112
break;
113113
case 'F':
@@ -351,11 +351,11 @@ help(const char *progname)
351351
printf(_(" -f, --full do full vacuuming\n"));
352352
printf(_(" -F, --freeze freeze row transaction information\n"));
353353
printf(_(" -i, --inplace do full inplace vacuuming\n"));
354-
printf(_(" -o, --analyze-only only update optimizer hints\n"));
355354
printf(_(" -q, --quiet don't write any messages\n"));
356355
printf(_(" -t, --table='TABLE[(COLUMNS)]' vacuum specific table only\n"));
357356
printf(_(" -v, --verbose write a lot of output\n"));
358357
printf(_(" -z, --analyze update optimizer hints\n"));
358+
printf(_(" -Z, --analyze-only only update optimizer hints\n"));
359359
printf(_(" --help show this help, then exit\n"));
360360
printf(_(" --version output version information, then exit\n"));
361361
printf(_("\nConnection options:\n"));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy