pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jacques Caron <jc@directinfos.com>
To: Alex Stapleton <alexs@advfn.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: autovacuum suggestions for 500,000,000+ row
Date: Mon, 20 Jun 2005 16:59:29 +0200
Message-ID: <6.2.0.14.0.20050620165134.03b61140@pop.interactivemediafactory.net> (raw)
In-Reply-To: <BE7E1F60-FA3A-4843-988E-AC2CC1FA22E5@advfn.com>
References: <BE7E1F60-FA3A-4843-988E-AC2CC1FA22E5@advfn.com>

Hi,

At 16:44 20/06/2005, Alex Stapleton wrote:
>We never delete
>anything  (well not often, and not much) from the tables, so I am not
>so worried about the VACUUM status

DELETEs are not the only reason you might need to VACUUM. UPDATEs are 
important as well, if not more. Tables that are constantly updated 
(statistics, session data, queues...) really need to be VACUUMed a lot.

>but I am wary of XID wraparound
>nuking us at some point if we don't sort vacuuming out so we VACUUM
>at least once every year ;)

That would give you a maximum average of 31 transactions/sec... Don't know 
if that's high or low for you.

>  However not running ANALYZE for such huge
>periods of time is probably impacting the statistics accuracy
>somewhat, and I have seen some unusually slow queries at times.
>Anyway, does anyone think we might benefit from a more aggressive
>autovacuum configuration?

ANALYZE is not a very expensive operation, however VACUUM can definitely be 
a big strain and take a looooong time on big tables, depending on your 
setup. I've found that partitioning tables (at the application level) can 
be quite helpful if you manage to keep each partition to a reasonable size 
(under or close to available memory), especially if the partitioning scheme 
is somehow time-related. YMMV.

Jacques.





view thread (9+ messages)  latest in thread

Message-ID: <6.2.0.14.0.20050620165134.03b61140@pop.interactivemediafactory.net>
Permalink:  ../6.2.0.14.0.20050620165134.03b61140@pop.interactivemediafactory.net/
Also on:    postgresql.org/message-id/6.2.0.14.0.20050620165134.03b61140@pop.interactivemediafactory.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: jc@directinfos.com, alexs@advfn.com
  Subject: Re: autovacuum suggestions for 500,000,000+ row
  In-Reply-To: <6.2.0.14.0.20050620165134.03b61140@pop.interactivemediafactory.net>
  References: <BE7E1F60-FA3A-4843-988E-AC2CC1FA22E5@advfn.com> <6.2.0.14.0.20050620165134.03b61140@pop.interactivemediafactory.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