Re: Auto Vacuum Daemon

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Rikard Bosnjakovic <rikard(dot)bosnjakovic(at)gmail(dot)com>
Cc: A(dot)Bhattacharya(at)sungard(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: Auto Vacuum Daemon
Date: 2009-12-03 03:02:12
Message-ID: 4B172A34.4020401@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 3/12/2009 7:24 AM, Rikard Bosnjakovic wrote:
> On Wed, Dec 2, 2009 at 13:46,<A(dot)Bhattacharya(at)sungard(dot)com> wrote:
>
>> Is it fine to do that or should we manually perform vacuum and analyze.
>>
>> Will it automatically take care of vacuuming the tables and analyzing them?
>
> Have a look at this wiki-page that was posted by Craig on this list a
> few days ago:
>
> http://wiki.postgresql.org/index.php?title=VACUUM_FULL

For that question you're better off reading:

http://www.postgresql.org/docs/current/static/routine-vacuuming.html#AUTOVACUUM

http://www.postgresql.org/docs/8.3/interactive/runtime-config-autovacuum.html

The main thing to understand is that turning on autovacuum may not be
quite sufficient if you have some tables with really high update or
delete loads. You may need to tell autovacuum to pay more attention to
those tables. Similarly, on heavily loaded databases you might need to
tune autovacuum to be more aggressive so that it keeps up with table bloat.

Since you're still on 8.3 you will also need to make sure that your
max_fsm_pages are sufficient. 8.4 gets rid of that configuration option
and manages the task for you automatically instead, so consider
upgrading at some point.

--
Craig Ringer

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2009-12-03 03:03:18 Re: Catastrophic changes to PostgreSQL 8.4
Previous Message Craig Ringer 2009-12-03 02:54:07 Re: Catastrophic changes to PostgreSQL 8.4