Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-admin by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group