7.2b4: faster to dump and reload than to vacuum full - Mailing list pgsql-general

From Jeffrey W. Baker
Subject 7.2b4: faster to dump and reload than to vacuum full
Date
Msg-id Pine.LNX.4.33.0201141009240.1967-100000@windmill.gghcwest.com
Whole thread Raw
List pgsql-general
Vacuum full is kind of a drag, if most of the tuples have been deleted.
In fact, it is faster for me to dump, drop, and recreate my databases than
it is to vacuum full.

It would be nice if vacuum full had logic that understood when a table has
4000 tuples and 4000000000 deleted tuples it will probably be a lot faster
to just copy the good tuples into a new table and unlink the old table.

Does anyone know the effect of vacuum_mem setting on vacuum full time?
Mine is currently the default setting of 8192 (KB presumably).  My
databases are 70GB on a machine with 2GB main memory.

-jwb



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Anyway to know which users are connected to postgres?
Next
From: Andrew Sullivan
Date:
Subject: Re: 7.2 changes to varchar truncation