In VACUUM, FREEZE must be before ANALYZE; fix this in vacuumdb. Docs
authorBruce Momjian <bruce@momjian.us>
Tue, 28 Apr 2009 02:37:09 +0000 (02:37 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 28 Apr 2009 02:37:09 +0000 (02:37 +0000)
are already correct.

src/bin/scripts/vacuumdb.c

index 4691a67db028abd311a56ae96b2aba4230087748..875a9d32fe5641d2df64a977ef2146561abe3b39 100644 (file)
@@ -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");