Re: Review: B-Tree emulation for GIN

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: Review: B-Tree emulation for GIN
Дата
Msg-id 1232388160.7281.129.camel@jdavis
обсуждение исходный текст
Ответ на Re: Review: B-Tree emulation for GIN  (Teodor Sigaev <teodor@sigaev.ru>)
Ответы Re: Review: B-Tree emulation for GIN  (Teodor Sigaev <teodor@sigaev.ru>)
Список pgsql-hackers
On Mon, 2009-01-19 at 20:15 +0300, Teodor Sigaev wrote:
> Changes:
> - use NULL as left-most value. It's safe because NULL numeric value
>    cannot be an argument for any function except gin_numeric_cmp and it
>    cannot be returned in regular SQL query.

gin_numeric_cmp() can be called from regular SQL. I missed this before,
but that function will segfault if you call gin_numeric_cmp(NULL, 1) (in
v0.7 at least).

I know you mean a C NULL, not a SQL NULL, but it reminded me to test SQL
NULL.

And how does GIN handle SQL NULL values in the column? Does it index
them at all, or just ignore them?

Regards,Jeff Davis



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] GIN improvements
Следующее
От: Teodor Sigaev
Дата:
Сообщение: Re: [PATCHES] GIN improvements