7.2b4: faster to dump and reload than to vacuum full

From: "Jeffrey W(dot) Baker" <jwbaker(at)acm(dot)org>
To: <pgsql-general(at)postgres(dot)org>
Subject: 7.2b4: faster to dump and reload than to vacuum full
Date: 2002-01-14 18:19:07
Message-ID: Pine.LNX.4.33.0201141009240.1967-100000@windmill.gghcwest.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Boes 2002-01-14 18:39:30 Re: How to send automatically a NOTIFY when a COMMIT is done ?
Previous Message David A Dickson 2002-01-14 18:17:06 SELECT help (fwd)