Skip to content

Commit b3dbc8f

Browse files
committed
In VACUUM, FREEZE must be before ANALYZE; fix this in vacuumdb. Docs
are already correct.
1 parent ba36c48 commit b3dbc8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bin/scripts/vacuumdb.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Portions Copyright (c) 1996-2009, 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.25 2009/02/26 16:02:39 petere Exp $
8+
* $PostgreSQL: pgsql/src/bin/scripts/vacuumdb.c,v 1.26 2009/04/28 02:37:09 momjian Exp $
99
*
1010
*-------------------------------------------------------------------------
1111
*/
@@ -197,10 +197,10 @@ vacuum_one_database(const char *dbname, bool full, bool verbose, bool analyze,
197197
appendPQExpBuffer(&sql, " FULL");
198198
if (verbose)
199199
appendPQExpBuffer(&sql, " VERBOSE");
200-
if (analyze)
201-
appendPQExpBuffer(&sql, " ANALYZE");
202200
if (freeze)
203201
appendPQExpBuffer(&sql, " FREEZE");
202+
if (analyze)
203+
appendPQExpBuffer(&sql, " ANALYZE");
204204
if (table)
205205
appendPQExpBuffer(&sql, " %s", table);
206206
appendPQExpBuffer(&sql, ";\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