Re: vacuum process taking more than 33 hours

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: vacuum process taking more than 33 hours
Date: 2007-01-15 14:53:16
Message-ID: 20070115145316.GC13011@phlogiston.dyndns.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Mon, Jan 15, 2007 at 02:44:15PM +0000, Ezequiel Luis Pellettieri wrote:
> Hi Andrew,
>
> Why don't you try droping all indexes exept but the constraints ones for
> each table.

I don't have the problem, so I don't know whether that will help.

> then you'll free aprox half of DB size. then re-create indexes, one by one.
> and finally you can perform a full vacuum.
>
> that worked for me. :)

On some versions of Postgres, it will, but AFAIK the latest versions
don't have the same index bloat problems. Moreover, if your vacuum
regime is right, you should _never_ have to VACUUM FULL.

A

--
Andrew Sullivan | ajs(at)crankycanuck(dot)ca
When my information changes, I alter my conclusions. What do you do sir?
--attr. John Maynard Keynes

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message William Scott Jordan 2007-01-15 21:26:04 Referencing tables are grinding UPDATE to a halt
Previous Message Ezequiel Luis Pellettieri 2007-01-15 14:44:15 Re: vacuum process taking more than 33 hours