Fix picksplit with nan values

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема Fix picksplit with nan values
Дата
Msg-id CAPpHfdsRWLoKeJDM8NiX-ChxqAdGw1PQJ7JEhyKEc32+B9UXZA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Fix picksplit with nan values  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hackers,

PostGIS spotted that picksplit algorithm freezes in infinite loop when dealing with nan values. I discovered same bug is present in core opclasses. Attached patch fixes this issue interpreting nan as value greater than infinity like btree comparison function does. 
This patch contain copy of float8_cmp_internal rather than exposing it from float.c, because it let compiler inline this function.

------
With best regards,
Alexander Korotkov.
Вложения

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

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Re: [HACKERS] Is it necessary to rewrite table while increasing the scale of datatype numeric?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Is it necessary to rewrite table while increasing the scale of datatype numeric?