Re: Crash in gist insertion on pathological box data

Поиск
Список
Период
Сортировка
От Teodor Sigaev
Тема Re: Crash in gist insertion on pathological box data
Дата
Msg-id 49D5000A.2090402@sigaev.ru
обсуждение исходный текст
Ответ на Crash in gist insertion on pathological box data  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Ответы Re: Crash in gist insertion on pathological box data
Список pgsql-hackers
> The nature of the problem is this: if gist_box_picksplit doesn't find
> a good disposition on the first try, then it tries to split the data
> again based on the positions of the box centers. But there's a problem
> here with floating-point rounding; it's possible for the average of N

Look at the patch, it fixes the problem by comparing for equality by FPeq()
macros which is used everywhere in geometry calculation.

--
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
                                                    WWW: http://www.sigaev.ru/

Вложения

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