Re: autovacuum not working? - Mailing list pgsql-performance

From Jim C. Nasby
Subject Re: autovacuum not working?
Date
Msg-id 20061009212615.GN72517@nasby.net
Whole thread Raw
In response to Re: autovacuum not working?  ("Medora Schauer" <mschauer@fairfield.com>)
List pgsql-performance
On Mon, Oct 09, 2006 at 09:27:30AM -0500, Medora Schauer wrote:
> > From your attached config file:
> >
> > #autovacuum_vacuum_threshold = 1000    # min # of tuple updates before
> >                     # vacuum
> >
>
> Yup, that was it.

Actually, not quite.

Vacuum will update relpages and reltuples, but it won't update other
stats. That's what analyze does (autovacuum_analyze_threshold). By
default, that's set to 500; I'll typically drop it to 200 or so (keep in
mind that analyze is much cheaper than vacuum).
--
Jim Nasby                                            jim@nasby.net
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)

pgsql-performance by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: odd variances in count(*) times
Next
From: Tobias Brox
Date:
Subject: Re: Simple join optimized badly?