pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brian Modra <epailty@googlemail.com>
To: pgsql-admin@postgresql.org
Subject: Vacuum taking an age
Date: Thu, 3 Jan 2008 14:48:29 +0200
Message-ID: <5a9699850801030448k126a5028m85ddb2153e95184f@mail.gmail.com> (raw)

Hi,


I have a pretty "live" table: rows being inserted and updated more
than once 1 per second, though far, far more inserts than updates.

There are currently over 3 million rows.

It has not been vacuumed for months.

Now a vacuum on that table takes hours, and I have not let it complete
because it stays running into our daily busy time... but I've been
told its necessary because the table is slowing down.

I have begun a cron job which will do a daily analyze, and am thinking
of a weekly vacuum...
Please advise on the best way to keep this table maintained, even if
it means regularly taking the service offline early on Sunday
morning...

thanks in advance
Brian

-- 
Brian Modra   Land line: +27 23 5411 462
Mobile: +27 79 183 8059
6 Jan Louw Str, Prince Albert, 6930
Postal: P.O. Box 2, Prince Albert 6930
South Africa



view thread (6+ messages)  latest in thread

Message-ID: <5a9699850801030448k126a5028m85ddb2153e95184f@mail.gmail.com>
Permalink:  ../5a9699850801030448k126a5028m85ddb2153e95184f@mail.gmail.com/
Also on:    postgresql.org/message-id/5a9699850801030448k126a5028m85ddb2153e95184f@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: epailty@googlemail.com
  Subject: Re: Vacuum taking an age
  In-Reply-To: <5a9699850801030448k126a5028m85ddb2153e95184f@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