Content-Length: 255611 | pFad | http://github.com/postgrespro/postgres/commit/ed7b3b3811c5836a54549caaa217314be3f16fd0

0B initdb: remove unnecessary VACUUM FULL · postgrespro/postgres@ed7b3b3 · GitHub
Skip to content

Commit ed7b3b3

Browse files
committed
initdb: remove unnecessary VACUUM FULL
Report by Peter Eisentraut
1 parent 0badb06 commit ed7b3b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/initdb/initdb.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2325,7 +2325,8 @@ vacuum_db(void)
23252325

23262326
PG_CMD_OPEN;
23272327

2328-
PG_CMD_PUTS("ANALYZE;\nVACUUM FULL;\nVACUUM FREEZE;\n");
2328+
/* Run analyze before VACUUM so the statistics are frozen. */
2329+
PG_CMD_PUTS("ANALYZE;\nVACUUM FREEZE;\n");
23292330

23302331
PG_CMD_CLOSE;
23312332

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/ed7b3b3811c5836a54549caaa217314be3f16fd0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy