Skip site navigation (1) Skip section navigation (2)

Re: auto vacuum settings

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Jeff Frost <jeff(at)frostconsultingllc(dot)com>,pgsql-admin(at)postgresql(dot)org
Subject: Re: auto vacuum settings
Date: 2005-08-31 14:40:09
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
On Wed, Aug 31, 2005 at 09:47:35AM -0400, Tom Lane wrote:
> Jeff Frost <jeff(at)frostconsultingllc(dot)com> writes:
> > Since we're on the vacuum kick these days, what's the best way to tell if my 
> > autovacuum settings are working well?  I'm sure I can query some info out of 
> > the pg_stats tables, no?
> If the database isn't bloating (ie, physical storage growing faster than
> valid data volume) then it's getting the job done.  Keep an eye on
> "du $PGDATA" or pg_class.relpages entries.

Another test may be checking table stats with pgstattuple.  If the
percentage of dead rows grows as time passes, you have a problem.

Alvaro Herrera <alvherre[]>      Architect,
"Puedes vivir solo una vez, pero si lo haces bien, una vez es suficiente"

In response to

pgsql-admin by date

Next:From: Tom LaneDate: 2005-08-31 14:47:13
Subject: Re: Question to localization
Previous:From: Tom LaneDate: 2005-08-31 13:47:35
Subject: Re: auto vacuum settings

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group