pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Csaba Nagy <nagy@ecircle-ag.com>
To: jody brownell <jody.brownell@q1labs.com>
Cc: postgres performance list <pgsql-performance@postgresql.org>
Subject: Re: Help tuning autovacuum - seeing lots of relationbloat
Date: Wed, 21 Jun 2006 18:44:39 +0200
Message-ID: <1150908279.3309.56.camel@coppola.muc.ecircle.de> (raw)
In-Reply-To: <200606211339.33262.jody.brownell@q1labs.com>
References: <200606211052.43227.jody.brownell@q1labs.com>
	<200606211321.06253.jody.brownell@q1labs.com>
	<1150907799.3309.53.camel@coppola.muc.ecircle.de>
	<200606211339.33262.jody.brownell@q1labs.com>

On Wed, 2006-06-21 at 18:39, jody brownell wrote:
> that is exactly what I am seeing, one process, no change, always in idle while the others are constantly
> changing their state.
> 
> looks like someone opened a tx then is blocking on a queue lock or something. dang.

Don't forget to check the statistics collector settings (see below), if
that is not correct then autovacuum is indeed not working correctly... I
should have put that on the beginning of the mail so you won't overlook
it ;-)

> > 
> > Oh, just occured to me... in order to use autovacuum you also need to
> > enable the statistics collector on row level:
> > 
> > stats_start_collector = on
> > stats_row_level = on
> > 
> > See also:
> > http://www.postgresql.org/docs/8.1/static/maintenance.html#AUTOVACUUM
> > 
> > This was not mentioned in the settings in your original post, so I guess
> > you didn't touch that, and I think they are disabled by default.
> > 
> > If this is disabled, you should enable it and "pg_ctl reload ....", that
> > should fix the problem.
> > 
> > Cheers,
> > Csaba.






view thread (19+ messages)  latest in thread

Message-ID: <1150908279.3309.56.camel@coppola.muc.ecircle.de>
Permalink:  ../1150908279.3309.56.camel@coppola.muc.ecircle.de/
Also on:    postgresql.org/message-id/1150908279.3309.56.camel@coppola.muc.ecircle.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: nagy@ecircle-ag.com, jody.brownell@q1labs.com
  Subject: Re: Help tuning autovacuum - seeing lots of relationbloat
  In-Reply-To: <1150908279.3309.56.camel@coppola.muc.ecircle.de>
  References: <200606211052.43227.jody.brownell@q1labs.com> <200606211321.06253.jody.brownell@q1labs.com> <1150907799.3309.53.camel@coppola.muc.ecircle.de> <200606211339.33262.jody.brownell@q1labs.com> <1150908279.3309.56.camel@coppola.muc.ecircle.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox