Re: Autovacuum in the backend

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

On Fri, 2005-06-17 at 00:03 -0700, Joshua D. Drake wrote:
> Matthew T. O'Connor wrote:
> > Joshua D. Drake wrote:
> >
> >> Just my own two cents. First I am not knocking the work that has been
> >> on autovacuum. I am sure that it was a leap on its own to get it to
> >> work. However I will say that I just don't see the reason for it.
> >
> >
> >
> > 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.

Agreed, except I have a number of tables that are over scheduled with
cron because about once a week (at a random time) they do go through
heavy enough churn to require the more frequent vacuum, but the rest of
the time they're fairly quiet. It's not ideal, but autovacuum was the
difference between a 10 minute vacuum 24/7, or a 10 minute vacuum on the
table for the heavy 2 or so hours which randomly appear.

In the case of unexpected or uneven loads, cron isn't particularly
useful.

--

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Albert Vernon Smith 2005-06-17 14:47:14 Re: query plan in pg7.4 vs 8.0.3
Previous Message Sean Davis 2005-06-17 14:32:52 Re: Multiple COPYs

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2005-06-17 14:38:34 Re: Utility database (Was: RE: Autovacuum in the backend)
Previous Message Tom Lane 2005-06-17 14:34:59 Re: Utility database (Was: RE: Autovacuum in the backend)