Re: [RFC] Minmax indexes - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [RFC] Minmax indexes
Date
Msg-id 21683.1371251267@sss.pgh.pa.us
Whole thread Raw
In response to Re: [RFC] Minmax indexes  (Josh Berkus <josh@agliodbs.com>)
Responses Re: [RFC] Minmax indexes  (Simon Riggs <simon@2ndQuadrant.com>)
Re: [RFC] Minmax indexes  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers
Josh Berkus <josh@agliodbs.com> writes:
>> To avoid this, a table having a minmax index would be
>> configured so that inserts only go to the page(s) at the end of the table; this
>> avoids frequent invalidation of ranges in the middle of the table.  We provide
>> a table reloption that tweaks the FSM behavior, so that summarized pages are
>> not candidates for insertion.

> We haven't had an index type which modifies table insertion behavior
> before, and I'm not keen to start now; imagine having two indexes on the
> same table each with their own, conflicting, requirements.

I agree; such a restriction is a nonstarter for a secondary index.  I
don't believe that hacking the FSM would be sufficient to guarantee the
required behavior, either.

We've talked a lot about index-organized tables in the past.  How much
of the use case for this would be subsumed by a feature like that?
        regards, tom lane



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: extensible external toast tuple support
Next
From: Alvaro Herrera
Date:
Subject: Re: extensible external toast tuple support