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 relation
Date: Wed, 21 Jun 2006 16:08:33 +0200
Message-ID: <1150898912.3309.23.camel@coppola.muc.ecircle.de> (raw)
In-Reply-To: <200606211052.43227.jody.brownell@q1labs.com>
References: <200606211052.43227.jody.brownell@q1labs.com>

> So, it appears my autovacuum is just NOT working... I must have screwed something up, but I cannot see what. 

Is it possible that you have long running transactions ? If yes, VACUUM
is simply not efficient, as it won't eliminate the dead space
accumulated during the long running transaction. In that case VACUUM
FULL won't help you either as it also can't eliminate dead space still
visible by old transactions, but from what you say I guess you really
stop everything before doing VACUUM FULL so you might as well stopped
the culprit transaction too... that's why the VACUUM FULL worked (if my
assumption is correct).

To check if this is the case, look for "idle in transaction" in your
process listing (ps auxww|grep "idle in transaction"). If you got one
(or more) of that, you found your problem. If not, hopefully others will
help you :-)

Cheers,
Csaba.






view thread (19+ messages)  latest in thread

Message-ID: <1150898912.3309.23.camel@coppola.muc.ecircle.de>
Permalink:  ../1150898912.3309.23.camel@coppola.muc.ecircle.de/
Also on:    postgresql.org/message-id/1150898912.3309.23.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: nagy@ecircle-ag.com, jody.brownell@q1labs.com
  Subject: Re: Help tuning autovacuum - seeing lots of relation
  In-Reply-To: <1150898912.3309.23.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