Re: Vacuum taking an age - Mailing list pgsql-admin

From Andrew Sullivan
Subject Re: Vacuum taking an age
Date
Msg-id 20080104181636.GN821@crankycanuck.ca
Whole thread Raw
In response to Re: Vacuum taking an age  ("Brian Modra" <epailty@googlemail.com>)
List pgsql-admin
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


pgsql-admin by date:

Previous
From: Guy Deleeuw
Date:
Subject: how to array and other select
Next
From: Tom Lane
Date:
Subject: Re: Postgres 7.4 VACUUM FULL multiple AccessExclusiveLocks?