Re: sequence indexes - Mailing list pgsql-hackers

From Tom Lane
Subject Re: sequence indexes
Date
Msg-id 5377.1011992165@sss.pgh.pa.us
Whole thread Raw
In response to Re: sequence indexes  (Vince Vielhaber <vev@michvhf.com>)
Responses Re: sequence indexes  (Vince Vielhaber <vev@michvhf.com>)
List pgsql-hackers
Vince Vielhaber <vev@michvhf.com> writes:
> A bit much diskspace for that, isn't it?   The data turns over alot.

Yeah, this is one of the scenarios where we desperately need index
compaction.  The index pages holding the lower serial numbers are
no doubt empty or nearly so, but there's no mechanism for reclaiming
that space short of rebuilding the index.  (BTW you might consider
REINDEX instead of a manual drop/recreate.)

I've looked at the problem a little bit --- there's literature more
recent than Lehmann-Yao that talks about how to do btree compaction
without losing concurrency.  But it didn't get done for 7.2.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: sequence indexes
Next
From: Vince Vielhaber
Date:
Subject: Re: sequence indexes