Re: Second attempt, roll your own autovacuum - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Second attempt, roll your own autovacuum
Date
Msg-id 20061219162247.GE3036@alvh.no-ip.org
Whole thread Raw
In response to Re: Second attempt, roll your own autovacuum  (Csaba Nagy <nagy@ecircle-ag.com>)
Responses Autovacuum Improvements (was: Second attempt, roll your own autovacuum)  (Matthew O'Connor <matthew@zeut.net>)
List pgsql-general
Csaba Nagy wrote:
> > Alternatively, perhaps a threshold so that a table is only considered
> > for vacuum if:
> >    (table-size * overall-activity-in-last-hour) < threshold
> > Ideally you'd define your units appropriately so that you could just
> > define threshold in postgresql.conf as 30% (of peak activity in last 100
> > hours say).
>
> No, this is definitely not enough. The problem scenario is when
> autovacuum starts vacuuming a huge table and that keeps it busy 10 hours
> and in the meantime the small but frequently updated tables get awfully
> bloated...
>
> The only solution to that is to have multiple vacuums running in
> parallel, and it would be really nice if those multiple vacuums would be
> coordinated by autovacuum too...

Yes, I agree, having multiple "autovacuum workers" would be useful.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-general by date:

Previous
From: Matthew O'Connor
Date:
Subject: Re: Let's play bash the search engine
Next
From: Richard Huxton
Date:
Subject: Re: Second attempt, roll your own autovacuum