Re: Problems with autovacuum

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Łukasz Jagiełło <lukasz(dot)jagiello(at)gforces(dot)pl>, Grzegorz Jaśkiewicz <gryzman(at)gmail(dot)com>, Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Problems with autovacuum
Date: 2009-05-26 18:19:34
Message-ID: 20090526181934.GG32650@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Tom Lane escribió:
> =?UTF-8?B?xYF1a2FzeiBKYWdpZcWCxYJv?= <lukasz(dot)jagiello(at)gforces(dot)pl> writes:
> > That autovacuum working hole time, shoudn't be run only when db needs ?
>
> With 2000 databases to cycle through, autovac is going to be spending
> quite a lot of time just finding out whether it needs to do anything.
> I believe the interpretation of autovacuum_naptime is that it should
> examine each database that often, ie once a minute by default. So
> it's got more than 30 databases per second to look through.

Note that this is correct in 8.1 and 8.2 but not 8.3 onwards.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2009-05-26 18:28:22 Re: Problems with autovacuum
Previous Message Kenny Gorman 2009-05-26 15:49:25 Re: Putting tables or indexes in SSD or RAM: avoiding double caching?