VACUUM FULL during initdb

Started by Takahiro Itagakialmost 16 years ago2 messages
#1Takahiro Itagaki
itagaki.takahiro@oss.ntt.co.jp

Do we still need VACUUM FULL in initdb? VACUUM FULL in 9.0 rewrites
all tables, so those operations are a little more expensive than
previous releases. Is it worth replacing them into VACUUM?

make_template0(void)
Finally vacuum to clean up dead rows in pg_database
"VACUUM FULL pg_database;\n",

vacuum_db(void)
PG_CMD_PUTS("ANALYZE;\nVACUUM FULL;\nVACUUM FREEZE;\n");

Regards,
---
Takahiro Itagaki
NTT Open Source Software Center

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Takahiro Itagaki (#1)
Re: VACUUM FULL during initdb

Takahiro Itagaki <itagaki.takahiro@oss.ntt.co.jp> writes:

Do we still need VACUUM FULL in initdb? VACUUM FULL in 9.0 rewrites
all tables, so those operations are a little more expensive than
previous releases. Is it worth replacing them into VACUUM?

I had left it that way intentionally to make sure there was nothing
depending on catalogs retaining their original relfilenode number.
I'm not sure that speed of initdb is a particularly significant factor.

regards, tom lane