Re: [HACKERS] compress method for spgist - 2
| От | Darafei "Komяpa" Praliaskouski |
|---|---|
| Тема | Re: [HACKERS] compress method for spgist - 2 |
| Дата | |
| Msg-id | CAC8Q8tJ6jPJd_BJftq9CVrUNTNM__P-H4jbNO9qr5oV=bYJU0w@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: [HACKERS] compress method for spgist - 2 (Nikita Glukhov <n.gluhov@postgrespro.ru>) |
| Ответы |
Re: [HACKERS] compress method for spgist - 2
Re: [HACKERS] compress method for spgist - 2 |
| Список | pgsql-hackers |
It is possible for bbox->low.x to be NaN when circle->center.x is and
circle->radius are both +Infinity.
What is rationale behind this circle?
It seems to me that any circle with radius of any Infinity should become a [-Infinity .. Infinity, -Infinity .. Infinity] box. Then you won't have NaNs, and index structure shouldn't be broken.
If it happens because NaN > Infinity, then the check should be not for isnan, but for if (low>high){swap(high, low)}. It probably should be a part of box, not a part of circle, maths.
В списке pgsql-hackers по дате отправления: