OSDN Git Service

FREEZE and VERBOSE options were in wrong order in the VACUUM command that
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 16 Oct 2009 10:38:25 +0000 (10:38 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 16 Oct 2009 10:38:25 +0000 (10:38 +0000)
vacuumdb produces. Per report by Thom Brown.

src/bin/scripts/vacuumdb.c

index f35b609..20cb19e 100644 (file)
@@ -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.26 2009/04/28 02:37:09 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/scripts/vacuumdb.c,v 1.27 2009/10/16 10:38:25 heikki Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -195,10 +195,10 @@ vacuum_one_database(const char *dbname, bool full, bool verbose, bool analyze,
        appendPQExpBuffer(&sql, "VACUUM");
        if (full)
                appendPQExpBuffer(&sql, " FULL");
-       if (verbose)
-               appendPQExpBuffer(&sql, " VERBOSE");
        if (freeze)
                appendPQExpBuffer(&sql, " FREEZE");
+       if (verbose)
+               appendPQExpBuffer(&sql, " VERBOSE");
        if (analyze)
                appendPQExpBuffer(&sql, " ANALYZE");
        if (table)