Re: Brain dump: btree collapsing - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Brain dump: btree collapsing
Date
Msg-id 9907.1045107209@sss.pgh.pa.us
Whole thread Raw
In response to Re: Brain dump: btree collapsing  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Brain dump: btree collapsing
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> It would be nice if VACUUM FULL would be able to compress the actual
> index file and return unused space to the operating system.  REINDEX
> does this, but I was thinking of something a little lighter that could
> be done automatically as part of VACUUM FULL.

But indexes tend to be very dependent on physical layout.  You can't
just shove stuff around without thinking about the consequences.
Tables (heaps) are *much* more forgiving about that.

My feeling is that what we need to fix now is index bloat during normal
operation.  If you want the indexes to actually *shrink*, that's a job
for REINDEX.  Perhaps someday we can improve on that --- but let's not
blur our focus on the immediate problem.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: horology and time failures on freebsd/alpha
Next
From: Greg Stark
Date:
Subject: Re: log_duration