Re: Index bloat and the need to REINDEX - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Index bloat and the need to REINDEX
Date
Msg-id 20060815232042.GC22322@alvh.no-ip.org
Whole thread Raw
In response to Index bloat and the need to REINDEX  ("Greg Sabino Mullane" <greg@turnstep.com>)
List pgsql-hackers
Greg Sabino Mullane wrote:

> Is there a better solution to the "index bloat" problem with regards
> to minimizing locking while reducing an ever-growing use of disk
> space? In particular, it would be nice if there was a way to force
> VACUUM [FULL] to do some of the compression that REINDEX now does.
> 
> Right now, we have tables that are updated very frequently, and a
> vacuum full just doesn't do much to reduce the disk space, as
> the indexes keep growing until a REINDEX is done. Tried on HEAD
> as well.

Vacuum full doesn't do anything to shrink the indexes -- rather, it's
the other way around, they become more bloated.  Your best bet is to
vacuum (not full) very frequently.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: BugTracker (Was: Re: 8.2 features status)
Next
From: "Larry Rosenman"
Date:
Subject: Re: BugTracker (Was: Re: 8.2 features status)