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 49D60A51.1020109@sigaev.ru
Whole thread Raw
In response to Re: 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
> Here is a test case that crashes even with the patch:
I was too optimistic :(

Attached patch contains:
- changes in R-tree picksplit methods. Now it checks bad ratio and if so then
   use simple split: one half of entries to one page, and another part - to
   another page.
- protection from buggy picksplit method: GiST will emit an error if picksplit
   of first column has that bug. For second and next column it could be a desired
   behaviour, because picksplit may take in attention result of picksplit of
   previous column.

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

Attachment

pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: Abwesend: [GENERAL] string_to_array with empty input
Next
From: Tom Lane
Date:
Subject: Re: Documentation Update: Document pg_start_backup checkpoint behavior