Re: Crash in gist insertion on pathological box data - Mailing list pgsql-hackers

From Teodor Sigaev
Subject Re: Crash in gist insertion on pathological box data
Date
Msg-id 49D5000A.2090402@sigaev.ru
Whole thread Raw
In response to Crash in gist insertion on pathological box data  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Responses Re: Crash in gist insertion on pathological box data  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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/

Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [GENERAL] string_to_array with empty input
Next
From: Tom Lane
Date:
Subject: Re: [GENERAL] string_to_array with empty input