| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера