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

PostGIS trac at osgeo.org
Thu May 17 06:19:40 PDT 2012


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

Comment(by pramsey):

 So, yeah, the planner expects one row to pop out of your spatial filter
 and instead 6000 do, which throws off the rest of the plan. Can you strip
 down the query to just the spatial table and filter and see if EXPLAIN
 ANALYZE still gets things that wrong? Because if you can get it down to
 one table and one piece of simple SQL we'll have something to work with,
 repairwise.

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