From: Bruce Momjian Date: Tue, 31 Mar 2015 15:51:39 +0000 (-0400) Subject: initdb: remove unnecessary VACUUM FULL X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=ed7b3b3811c5836a54549caaa217314be3f16fd0;p=users%2Fbernd%2Fpostgres.git initdb: remove unnecessary VACUUM FULL Report by Peter Eisentraut --- diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c index b9d6092c2c..86949209b0 100644 --- a/src/bin/initdb/initdb.c +++ b/src/bin/initdb/initdb.c @@ -2325,7 +2325,8 @@ vacuum_db(void) PG_CMD_OPEN; - PG_CMD_PUTS("ANALYZE;\nVACUUM FULL;\nVACUUM FREEZE;\n"); + /* Run analyze before VACUUM so the statistics are frozen. */ + PG_CMD_PUTS("ANALYZE;\nVACUUM FREEZE;\n"); PG_CMD_CLOSE;