pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-admin@postgresql.org, "Benjamin Krajmalnik" <kraj@illumen.com>
Subject: Re: Unexplained growth of tables
Date: Sun, 23 Jul 2006 13:48:21 -0400
Message-ID: <3580.1153676901@sss.pgh.pa.us> (raw)
In-Reply-To: <200607231319.29697.peter_e@gmx.net>
References: <BF337097BDD9D849A2F4B818DDB2798702949D@stash.stackdump.local>
	<200607231319.29697.peter_e@gmx.net>

Peter Eisentraut <peter_e@gmx.net> writes:
> Benjamin Krajmalnik wrote:
>> What can be causing this growth?  Not vacuuming often enough?

> The is exactly the reason.

>> I hav
>> pg_autovacuum running every 60 seconds.  These tables have 10-15
>> insert/update statements per second.

> You should probably run VACUUM FULL to get the table back to a normal 
> size and then closely monitor what pg_autovacuum actually does.

CLUSTER might be a better answer, since VACUUM FULL won't do anything
to help shrink the indexes.

As for the pg_autovacuum frequency, realize that pg_autovacuum processes
one database per firing.  So if you have N databases, any one database
is going to be looked at every N*60 seconds, not every 60 seconds.
You might need a shorter autovacuum cycle.

Lastly, what PG version is this?  We had some bugs that kept autovacuum
from being fully informed in some cases, but AFAIK they're all fixed in
the latest minor releases.

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <3580.1153676901@sss.pgh.pa.us>
Permalink:  ../3580.1153676901@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3580.1153676901@sss.pgh.pa.us

 · 

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, peter_e@gmx.net, kraj@illumen.com
  Subject: Re: Unexplained growth of tables
  In-Reply-To: <3580.1153676901@sss.pgh.pa.us>
  References: <BF337097BDD9D849A2F4B818DDB2798702949D@stash.stackdump.local> <200607231319.29697.peter_e@gmx.net> <3580.1153676901@sss.pgh.pa.us>

* 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