[postgis-devel] [PostGIS] #1828: Estimate returned by geography_gist_selectivity results in slow query plan for ST_DWithin

PostGIS trac at osgeo.org
Thu Nov 22 22:15:29 PST 2012


#1828: Estimate returned by geography_gist_selectivity results in slow query plan
for ST_DWithin
----------------------------+-----------------------------------------------
  Reporter:  realityexists  |       Owner:  mcayland     
      Type:  defect         |      Status:  reopened     
  Priority:  medium         |   Milestone:  PostGIS 2.0.2
 Component:  postgis        |     Version:  2.0.x        
Resolution:                 |    Keywords:               
----------------------------+-----------------------------------------------

Comment(by pramsey):

 I made a lot of careless mistakes in that sequence, but the final problem
 ended up being quite subtle. r10731 I didn't fix it, I just reverted it.
 It's tricky and sensitive. The geodetic bounding box of a point, when
 converted to float and stored in the gserialized is slightly larger than a
 point. For a one-entry table, that means the histogram is not just a
 single box, but something bigger. Math explodes, unpleasantness ensues.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1828#comment:57>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list