Re: Autovacuum Improvements - Mailing list pgsql-general

From Glen Parker
Subject Re: Autovacuum Improvements
Date
Msg-id 45889FB5.6070005@nwlink.com
Whole thread Raw
In response to Re: Autovacuum Improvements  ("Brandon Aiken" <BAiken@winemantech.com>)
Responses Re: Autovacuum Improvements  (Alban Hertroys <alban@magproductions.nl>)
List pgsql-general
Brandon Aiken wrote:
> You're saying that the dirtyness of a table is proportional to when you
> plan on vacuuming it next.

The dirtiness of a table should most certainly have an effect on when it
gets vacuumed in relation to other tables.  If dirtiness could be rated,
then the list of vacuumable tables could be sorted, vacuuming really
dirty tables before less dirty ones.

Now, if I could get my hands on that rating for any given table, then I
could write a night time script that would vacuum the dirtiest tables,
in order, until either I run out of dirty tables, or I run out of time.

In fact, if autovacuum did just that, then I might be inclined to attack
the problem with the "update postgresql.conf, pgctl" approach.  At least
then I'd know that even though ALL the dirty tables might not get
cleaned every night, at least the worst ones would.

-Glen


pgsql-general by date:

Previous
From: Glen Parker
Date:
Subject: Re: Autovacuum Improvements
Next
From: Alvaro Herrera
Date:
Subject: Re: Autovacuum Improvements