| От | Teodor Sigaev |
|---|---|
| Тема | Re: Crash in gist insertion on pathological box data |
| Дата | |
| Msg-id | 49D5095C.5050204@sigaev.ru обсуждение |
| Ответ на | Re: Crash in gist insertion on pathological box data (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Crash in gist insertion on pathological box data
|
| Список | pgsql-hackers |
> even further. And what confidence do you have that this change
> eliminates all forms of the problem, anyway?
Yes, I think. Because that part of code ( if (IS_BADRATIO) {...} ) is a corner
case itself. In example from Andrew, all boxes are placed to one page because of
floating-point rounding.
We could check IS_BADRATIO again and if it's just put one half of all boxes on
one page and another half to the another page as it does if all boxes are equal.
But FPeq() seemed to me a simpler solution and FP* comparisons are widely used
in geometry.
--
Teodor Sigaev E-mail: teodor@sigaev.ru
WWW: http://www.sigaev.ru/
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера