Re: GiST -- making my index faster makes is slower - Mailing list pgsql-hackers

From David Blasby
Subject Re: GiST -- making my index faster makes is slower
Date
Msg-id 40843967.1030209@refractions.net
Whole thread Raw
In response to Re: GiST -- making my index faster makes is slower  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I tracked the problem down to the "penalty" function used to build the 
tree.   Basically, it compares the area of the bounding boxes.

There wasnt enough precision in the area calculations - instead of 
giving 0.0 it would give numbers in the[+-]10^-6 range.  This really 
screwed up how the tree was being built.

I cast the float to doubles when calculating area, and it all works well 
now.

dave


pgsql-hackers by date:

Previous
From: Brett Schwarz
Date:
Subject: Re: [INTERFACES] Why is libpgtcl still in CVS?
Next
From: Bruce Momjian
Date:
Subject: Re: [INTERFACES] Why is libpgtcl still in CVS?