Vacuum only with 20% old tuples - Mailing list pgsql-hackers

From Bruce Momjian
Subject Vacuum only with 20% old tuples
Date
Msg-id 200007120040.UAA27940@candle.pha.pa.us
Whole thread Raw
Responses Re: Vacuum only with 20% old tuples
List pgsql-hackers
I suggest that we change vacuum to only move remove tuples if there is
more than 20% expired tuples.

When we do vacuum, we drop all indexes and recreate them.  

This fixes the complaint about vacuum slowness when there are many
expired rows in the table.  We know this is causes by excessive index
updates.  It allows indexes to shrink (Jan pointed this out to me.)  And
it fixes the TOAST problem with TOAST values in indexes.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Templates
Next
From: Tim Perdue
Date:
Subject: 7.0.2 issues / Geocrawler