Re: Autovacuum in the backend

From: "Matthew T(dot) O'Connor" <matthew(at)zeut(dot)net>
To: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
Cc: Russell Smith <mr-russ(at)pws(dot)com(dot)au>, Alvaro Herrera <alvherre(at)surnet(dot)cl>, Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Autovacuum in the backend
Date: 2005-06-17 12:04:35
Message-ID: 42B2BC53.9060507@zeut.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Joshua D. Drake wrote:

> Matthew T. O'Connor wrote:
>
>> The major reasons for autovacuum as I see it are as follows:
>>
>> * Reduces administrative overhead having to keep track of what tables
>> need to be vacuumed how often.
>
>
> Creates more overhead and thus reduces performance.

In the general case, I disagree. Overall having your tables vacuumed
and analyzed only when needed and never when not needed can only reduce
system overhead. Granted there are limitations in the contrib version
of autovacuum, some of which go away in the integrated case.

>> * Reduces the total amount of time the system spends vacuuming since
>> it only vacuums when needed.
>
> Can be easily done with cron.

Really? What happens when your load / usage patterns change? When a
table is added that gets heavily used?

>> * Keeps stats up-to-date automatically
>
>
> Which can be done with cron

Same response as above.

>> * Eliminates newbie confusion
>
>
> RTFM

;-)

>> * Eliminates one of the criticisms that the public has against
>> PostgreSQL (justifed or not)
>
>
> Agreed.
>
>
> Just so everyone knows from the get go here. I am purposely playing a
> little devils advocate. Autovacuum has some drawbacks. I think we should
> be **publicly** aware of them before we pursue integration.

Understood.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Matthew T. O'Connor 2005-06-17 12:11:50 Re: Autovacuum in the backend
Previous Message Matthew T. O'Connor 2005-06-17 11:58:53 Re: Autovacuum in the backend

Browse pgsql-hackers by date

  From Date Subject
Next Message Matthew T. O'Connor 2005-06-17 12:11:50 Re: Autovacuum in the backend
Previous Message Matthew T. O'Connor 2005-06-17 11:58:53 Re: Autovacuum in the backend