From: Matthew T. O'Connor <matthew@zeut.net>
To: Bill Montgomery <billm@lulu.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Avoiding vacuum full on an UPDATE-heavy table
Date: Fri, 21 May 2004 15:22:40 -0400 (EDT)
Message-ID: <54139.192.154.91.225.1085167360.squirrel@192.154.91.225> (raw)
In-Reply-To: <40AE274F.7020800@lulu.com>
References: <40AE274F.7020800@lulu.com>
> Is there any way to avoid doing a periodic VACUUM FULL on this table,
> given the fairly radical usage pattern? Or is the (ugly) answer to
> redesign our application to avoid this usage pattern?
Yes, you should be able to doing avoid periodic VACUUM FULL. The problem
is that your table needs to be vacuumed MUCH more often. What should
happen is that assuming you have enough FSM space allocated and assuming
you vacuum the "right" amount, your table will reach a steady state size.
As you could see your from you vacumm verbose output your table was almost
entriely dead space.
pg_autovacuum would probably help as it monitors activity and vacuumus
tables accordingly. It is not included with 7.3.x but if you download it
and compile yourself it will work against a 7.3.x server.
Good luck,
Matthew
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: matthew@zeut.net, billm@lulu.com
Subject: Re: Avoiding vacuum full on an UPDATE-heavy table
In-Reply-To: <54139.192.154.91.225.1085167360.squirrel@192.154.91.225>
References: <40AE274F.7020800@lulu.com> <54139.192.154.91.225.1085167360.squirrel@192.154.91.225>
* 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