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

From Bruce Momjian
Subject Re: Vacuum only with 20% old tuples
Date
Msg-id 200007121337.JAA21554@candle.pha.pa.us
Whole thread Raw
In response to Re: Vacuum only with 20% old tuples  (Andrew McMillan <Andrew@catalyst.net.nz>)
List pgsql-hackers
> I can see some value in having a _configurable_ threshold %age of
> deletes before vacuum kicked in and attempted to shrink table/index
> on-disk file sizes.  This would let the end-user decide, and 20% is
> probably a reasonable default, but if it isn't then changing a default
> is easier to do down the track.
> 
> I can also see that it could be done with (perhaps) a modification to
> VACUUM syntax, say:
>     VACUUM [VERBOSE] [SHRINK] ...
> 
> And I believe that the whole thing will go better if ANALYZE is taken
> _out_ of vacuum, as was discussed on this list a month or two ago.

The analayze process no longer locks the table exclusively.  It will be
made a separate command in 7.1, though an ANALYZE option will still be
avaiable in VACUUM.

--  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: Tim Perdue
Date:
Subject: Re: Serious Performance Loss in 7.0.2??
Next
From: Philip Warner
Date:
Subject: pg_dump & blobs - editable dump?