]> granicus.if.org Git - postgresql/commitdiff
Add ORDER BY to vacummdb so databases are scaned in the same order as
authorBruce Momjian <bruce@momjian.us>
Tue, 13 Feb 2007 17:39:39 +0000 (17:39 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 13 Feb 2007 17:39:39 +0000 (17:39 +0000)
pg_dumpall.

src/bin/scripts/vacuumdb.c

index 7bd67c2456476ece5f5aacde0954546b8541bff6..aaa897b747729c586178487e427f5df85a7aa0cb 100644 (file)
@@ -5,7 +5,7 @@
  * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/bin/scripts/vacuumdb.c,v 1.15 2007/01/05 22:19:50 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/scripts/vacuumdb.c,v 1.16 2007/02/13 17:39:39 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -234,7 +234,7 @@ vacuum_all_databases(bool full, bool verbose, bool analyze,
        int                     i;
 
        conn = connectDatabase("postgres", host, port, username, password, progname);
-       result = executeQuery(conn, "SELECT datname FROM pg_database WHERE datallowconn;", progname, echo);
+       result = executeQuery(conn, "SELECT datname FROM pg_database WHERE datallowconn ORDER BY 1;", progname, echo);
        PQfinish(conn);
 
        for (i = 0; i < PQntuples(result); i++)