Re: GiST: PickSplit and multi-attr indexes - Mailing list pgsql-hackers

From Tom Lane
Subject Re: GiST: PickSplit and multi-attr indexes
Date
Msg-id 27866.1100476459@sss.pgh.pa.us
Whole thread Raw
In response to GiST: PickSplit and multi-attr indexes  (Neil Conway <neilc@samurai.com>)
Responses Re: GiST: PickSplit and multi-attr indexes
List pgsql-hackers
Neil Conway <neilc@samurai.com> writes:
> If I understand the code correctly, GiST will only pass the first 
> attribute of each index tuple to the user-defined PickSplit method when 
> it wants to split a node. (see circa line 1269 of gist.c)

> Is this a wise design decision?

It's probably just a hangover from the days when GiST didn't support
multi-column indexes at all.  I agree it should be changed.  But note
you will then have to cope with NULL values.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: German-style quotes in the source file
Next
From: Tom Lane
Date:
Subject: Re: IpcSemaphoreLock/Unlock and proc_exit on 7.2.6