pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Hoover <revoohc@gmail.com>
To: pgsql-admin@postgresql.org Admin <pgsql-admin@postgresql.org>
Subject: More Autovacuum questions
Date: Tue, 15 Jul 2008 09:19:48 -0400
Message-ID: <1d219a6f0807150619o567709ebu7d28429d2907bf82@mail.gmail.com> (raw)

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.

Thanks for any comments,

Chris

view thread (8+ messages)  latest in thread

Message-ID: <1d219a6f0807150619o567709ebu7d28429d2907bf82@mail.gmail.com>
Permalink:  ../1d219a6f0807150619o567709ebu7d28429d2907bf82@mail.gmail.com/
Also on:    postgresql.org/message-id/1d219a6f0807150619o567709ebu7d28429d2907bf82@mail.gmail.com

 · 

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: revoohc@gmail.com
  Subject: Re: More Autovacuum questions
  In-Reply-To: <1d219a6f0807150619o567709ebu7d28429d2907bf82@mail.gmail.com>

* 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