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

PostGIS trac at osgeo.org
Fri Jun 22 03:48:27 PDT 2012


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

Comment(by strk):

 Are you saying that ST_AsText(ST_Expand('POINT(0 0)'::geography)) would
 return 'POINT(0 0)' ? If that's the case I'd consider it a bad bug indeed.

 That said, wouldn't it be faster just to always use the cached bbox rather
 than recomputing it ? Or is there any special need to recompute for
 geography ? Or is it the old double vs. float story ?

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1828#comment:25>
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