Re: GiST: PickSplit and multi-attr indexes

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: GiST: PickSplit and multi-attr indexes
Дата
Msg-id 1100492090.23420.28.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Re: GiST: PickSplit and multi-attr indexes  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: GiST: PickSplit and multi-attr indexes
Re: GiST: PickSplit and multi-attr indexes
Список pgsql-hackers
On Sun, 2004-11-14 at 18:54 -0500, Tom Lane wrote:
> 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.

I'm not sure the right way to fix it (at least without significant
changes to the GiST API). At present, the PickSplit() method is passed a
vector of GISTENTRYs and fills in a GIST_SPLITVEC. The GISTENTRYs
correspond to the first attributes of all the tuples in the node to be
split. There is no provision for the GiST extension to be informed about
any additional attributes in the index tuples. Even if we changed the
API to allow that, the GiST extension would have a hard time making a
reasonable decision in the multi-attribute case: the additional index
attributes could well be implemented using a different GiST extension.

> But note you will then have to cope with NULL values.

Yes -- I'm not sure offhand why GiST does not allow leading NULL values
in index attributes, but that ought to be fixed anyway.

-Neil




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: psql \e broken again
Следующее
От: joseph speigle
Дата:
Сообщение: Re: psql \e broken again