Re: Vacuum taking an age

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Vacuum taking an age
Date: 2008-01-04 18:16:36
Message-ID: 20080104181636.GN821@crankycanuck.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2008-01-04 19:18:03 Re: Postgres 7.4 VACUUM FULL multiple AccessExclusiveLocks?
Previous Message Guy Deleeuw 2008-01-04 17:53:27 how to array and other select