Re: database size grows (even after vacuum (full and analyze))....

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Joao Miguel Ferreira <jmf(at)estg(dot)ipvc(dot)pt>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: database size grows (even after vacuum (full and analyze))....
Date: 2006-05-03 17:29:10
Message-ID: 20060503172910.GA24314@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-novice

On Wed, May 03, 2006 at 18:15:37 +0100,
Joao Miguel Ferreira <jmf(at)estg(dot)ipvc(dot)pt> wrote:
> On Wed, 2006-05-03 at 15:45, Bruno Wolff III wrote:
> > On Wed, May 03, 2006 at 12:02:18 +0100,
> > Joao Miguel Ferreira <jmf(at)estg(dot)ipvc(dot)pt> wrote:
> > > certain life time for each record).
> > >
> > > Dispite this, the file system size still grows (at about 500KB in about
> > > 1000 minutes).
> >
> > How often are you vacuuming the table?
>
> I wrote that on my original e-mail: I do a "VACUUM ANALYZE" every 30
> minutes and a "VACUUM FULL" every 2 hours.

Sorry about that, I obviously missed that.

> Should I do anything else ? Thanks.

There are a couple of possibilities worth checking. One is that there aren't
idle transactions staying open for a long time. These would prevent vacuum
from removing deleted rows as these transactions could still see them.
Another possibility is that the FSM is too low and there isn't enough space to
track all of rows that can be recovered. (Vacuuming more often will also
reduce the needed FSM setting.) A third possible issue is index bloat, which
can happen on older versions (7.4ish) of Postgres where key values increase (or
decrease) montonicly.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Fetter 2006-05-03 17:44:00 Re: insert into a view?
Previous Message Douglas McNaught 2006-05-03 17:16:52 Re: out of memory for query result

Browse pgsql-novice by date

  From Date Subject
Next Message Joao Miguel Ferreira 2006-05-03 17:57:24 Re: database size grows (even after vacuum (full and analyze))....
Previous Message Joao Miguel Ferreira 2006-05-03 17:15:37 Re: database size grows (even after vacuum (full and analyze))....