Skip site navigation (1) Skip section navigation (2)

Re: More Autovacuum questions

From: "Matthew T(dot) O'Connor" <matthew(at)zeut(dot)net>
To: Chris Hoover <revoohc(at)gmail(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org Admin" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: More Autovacuum questions
Date: 2008-07-15 15:12:30
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
Chris Hoover wrote:
> Another question.
> When autovacuum sleeps, does it release the lock it has on the table? 
> What we would like to have happen is for vacuum to work for a while, 
> sleep, and while it is sleeping run an analyze on the table.  We need 
> this due to how quickly our data is changing.  Currently we are running 
> analyze every 5 minutes against the table of question and get a very 
> serious performance hit when vacuum runs due to the index stats getting 
> out of date.  As soon as we rerun analyze after the vacuum happiness 
> returns.
> The pg_total_relation_size for the table in question is 64GB, and as 
> stated above is a very heavily used and modifed table.

As Alvaro already said this is a case where autovacuum still isn't 
great.  Perhaps what you should do here is disable auto-vacumming of the 
table during busy periods and and only have it vacuum at off peak times?

In response to


pgsql-admin by date

Next:From: Carol WalterDate: 2008-07-15 15:58:48
Subject: Re: Changing encoding
Previous:From: Peter EisentrautDate: 2008-07-15 15:04:43
Subject: Re: Changing encoding

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group