Re: Fix picksplit with nan values

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Fix picksplit with nan values
Дата
Msg-id 22236.1383933485@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Fix picksplit with nan values  (Alexander Korotkov <aekorotkov@gmail.com>)
Список pgsql-hackers
Alexander Korotkov <aekorotkov@gmail.com> writes:
>> Thanks, Andrew! Good spot.
>> I didn't examine order by operators for work with NaNs.
>> I think this time problem is in GiST itself rather than in opclass. I'm
>> going to fix it in a separate patch.

> Attached patch fixes knn GiST behaviour with NaN. It makes RB-tree
> comparison function in GiST work like float8 btree opclass comparison
> function.

Hmm ... does that really work, or even do anything?  I'd have thought
that if either input is a NAN, the initial test
    if (sa->distances[i] != sb->distances[i])

would return false so we'd not enter the rest of it.
        regards, tom lane



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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Changing pg_dump default file format
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: backup.sgml-cmd-v003.patch