Re: Autovacuum Improvements

From: Matthew O'Connor <matthew(at)zeut(dot)net>
To: Glen Parker <glenebob(at)nwlink(dot)com>
Cc: Postgres general mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: Autovacuum Improvements
Date: 2006-12-20 01:33:59
Message-ID: 45889307.9020504@zeut.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Glen Parker wrote:
>> I wonder if the simple solution is to just have a cron script modify
>> postgresql.conf and pg_ctl reload. That seems very flexible, or have
>> two postgresql.conf files and move them into place via cron.
>
> I'd still prefer to vacuum on demand actually. Rather than hope that
> autovacuum hit all the nastiest tables, I'd like to be able to record
> the fact that tables (x,y,z) were vacuumed and how long it took. I want
> the logic autovacuum uses to determine if a table needs vacuuming, but
> I'd rather do the actual vacuuming myself.
>
> I'd also like to use some of this information to issue reindex and
> cluster commands only when they're needed. In fact, on days when I
> cluster, there's no need whatsoever to also vacuum those tables. This
> is something that autovacuum won't do at all.
>
> If the best I got was access to the same information autovacuum uses to
> make its decisions, I'd be pretty happy

Well take a look at the autovacuum code, also, before autovacuum was
integrated into core it existed as a libpq based contrib application so
you can look in one of the older branches for that code.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Derrick 2006-12-20 01:51:31 postgres kerberos how to
Previous Message Alvaro Herrera 2006-12-20 01:25:50 Re: Autovacuum Improvements

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Dunstan 2006-12-20 01:39:58 Re: [HACKERS] Enums patch v2
Previous Message Peter Eisentraut 2006-12-20 01:33:41 Re: effective_cache_size vs units