aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2009-04-28 02:37:09 +0000
committerBruce Momjian <bruce@momjian.us>2009-04-28 02:37:09 +0000
commitb3dbc8fc1f7dce60b088c4786927f73da18a0b9f (patch)
tree07810bf892901fe2037f986e313ee29f6e12eb29 /src
parentba36c48e39747678412d48bcbf6ed14cb2dc8ddf (diff)
downloadpostgresql-b3dbc8fc1f7dce60b088c4786927f73da18a0b9f.tar.gz
postgresql-b3dbc8fc1f7dce60b088c4786927f73da18a0b9f.zip
In VACUUM, FREEZE must be before ANALYZE; fix this in vacuumdb. Docs
are already correct.
Diffstat (limited to 'src')
-rw-r--r--src/bin/scripts/vacuumdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/scripts/vacuumdb.c b/src/bin/scripts/vacuumdb.c
index ada55735beb..f35b6094a2a 100644
--- a/src/bin/scripts/vacuumdb.c
+++ b/src/bin/scripts/vacuumdb.c
@@ -5,7 +5,7 @@
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/bin/scripts/vacuumdb.c,v 1.25 2009/02/26 16:02:39 petere Exp $
+ * $PostgreSQL: pgsql/src/bin/scripts/vacuumdb.c,v 1.26 2009/04/28 02:37:09 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -197,10 +197,10 @@ vacuum_one_database(const char *dbname, bool full, bool verbose, bool analyze,
appendPQExpBuffer(&sql, " FULL");
if (verbose)
appendPQExpBuffer(&sql, " VERBOSE");
- if (analyze)
- appendPQExpBuffer(&sql, " ANALYZE");
if (freeze)
appendPQExpBuffer(&sql, " FREEZE");
+ if (analyze)
+ appendPQExpBuffer(&sql, " ANALYZE");
if (table)
appendPQExpBuffer(&sql, " %s", table);
appendPQExpBuffer(&sql, ";\n");