pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matthew T. O'Connor <matthew@zeut.net>
To: Chris Hoover <revoohc@gmail.com>
Cc: pgsql-admin@postgresql.org Admin <pgsql-admin@postgresql.org>
Subject: Re: More Autovacuum questions
Date: Tue, 15 Jul 2008 11:12:30 -0400
Message-ID: <487CBE5E.6030903@zeut.net> (raw)
In-Reply-To: <1d219a6f0807150619o567709ebu7d28429d2907bf82@mail.gmail.com>
References: <1d219a6f0807150619o567709ebu7d28429d2907bf82@mail.gmail.com>

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?




view thread (8+ messages)  latest in thread

Message-ID: <487CBE5E.6030903@zeut.net>
Permalink:  ../487CBE5E.6030903@zeut.net/
Also on:    postgresql.org/message-id/487CBE5E.6030903@zeut.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: matthew@zeut.net, revoohc@gmail.com
  Subject: Re: More Autovacuum questions
  In-Reply-To: <487CBE5E.6030903@zeut.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox