diff options
author | Bruce Momjian <bruce@momjian.us> | 2015-03-31 11:51:39 -0400 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2015-03-31 11:51:39 -0400 |
commit | ed7b3b3811c5836a54549caaa217314be3f16fd0 (patch) | |
tree | f9ae1ebef125ed98edc27128e33f635e4b25aae7 | |
parent | 0badb069bc9f590dbc1306ccbd51e99ed81f228c (diff) |
initdb: remove unnecessary VACUUM FULL
Report by Peter Eisentraut
-rw-r--r-- | src/bin/initdb/initdb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c index b9d6092c2c0..86949209b09 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; |