From: Bruce Momjian Date: Tue, 28 Apr 2009 02:37:09 +0000 (+0000) Subject: In VACUUM, FREEZE must be before ANALYZE; fix this in vacuumdb. Docs X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=7759dc8cf6a45f91f6757ea03d0e06c37664db63;p=users%2Fsimon%2Fpostgres.git In VACUUM, FREEZE must be before ANALYZE; fix this in vacuumdb. Docs are already correct. --- diff --git a/src/bin/scripts/vacuumdb.c b/src/bin/scripts/vacuumdb.c index 4691a67db0..875a9d32fe 100644 --- a/src/bin/scripts/vacuumdb.c +++ b/src/bin/scripts/vacuumdb.c @@ -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");