pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <ajs@crankycanuck.ca>
To: pgsql-admin@postgresql.org
Subject: Re: Vacuum taking an age
Date: Fri, 4 Jan 2008 13:16:36 -0500
Message-ID: <20080104181636.GN821@crankycanuck.ca> (raw)
In-Reply-To: <5a9699850801032055t4d10a7e3k4e37763b4cd77d2e@mail.gmail.com>
References: <5a9699850801030448k126a5028m85ddb2153e95184f@mail.gmail.com>
	<dcc563d10801031831q36a81040l8a6d57615a441cd6@mail.gmail.com>
	<5a9699850801032055t4d10a7e3k4e37763b4cd77d2e@mail.gmail.com>

On Fri, Jan 04, 2008 at 06:55:13AM +0200, Brian Modra wrote:
> I started a vacuum on the table yesterday, and its still running. I
> guess thats because the table is live. I am pretty sure that if I take
> it offline, then the vacuum will complete relatively quickly. Am I
> right? (I don't want to take it offline unless I really need to.)

No.  The vacuum on that table is going to take a long time, period.  See
upthread about not brushing teeth for 3 months.  

Anyway, I can't believe a plain vacuum is going to help you here.  I'd
perform CLUSTER or else dump the database and reload it.  You're looking at
a service outage, I think.

A




view thread (6+ messages)

Message-ID: <20080104181636.GN821@crankycanuck.ca>
Permalink:  ../20080104181636.GN821@crankycanuck.ca/
Also on:    postgresql.org/message-id/20080104181636.GN821@crankycanuck.ca

 · 

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: ajs@crankycanuck.ca
  Subject: Re: Vacuum taking an age
  In-Reply-To: <20080104181636.GN821@crankycanuck.ca>

* 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