Re: First version of multi-key index support for GiST

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: First version of multi-key index support for GiST
Дата
Msg-id 4655.991254923@sss.pgh.pa.us
обсуждение исходный текст
Ответ на First version of multi-key index support for GiST  (Oleg Bartunov <oleg@sai.msu.su>)
Список pgsql-hackers
Oleg Bartunov <oleg@sai.msu.su> writes:
> We have implemented multi-key index support for GiST. Patch is available
> from  http://www.sai.msu.su/~megera/postgres/gist/code/7.1.2/patch_multikeygist.7.1.2.gz

What is the point of the macro

#define ATTGET(itup, Rel, i, isnull ) ((char*)( \    ( IndexTupleSize(itup) == sizeof(IndexTupleData) ) ? \
*(isnull)=true,NULL \        : \        index_getattr(itup, i, (Rel)->rd_att, isnull) \))
 

It appears to me that index_getattr should handle an all-NULL index
tuple just fine by itself --- certainly the btree code expects it to.
So I do not see the reason for this extra layer on top of it.
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: AW: AW: Plans for solving the VACUUM problem
Следующее
От: Jan Wieck
Дата:
Сообщение: Re: Support for %TYPE in CREATE FUNCTION