[postgis-tickets] [PostGIS] #3675: Relationship functions not using an index in some cases

PostGIS trac at osgeo.org
Sat Dec 3 12:06:18 PST 2016


#3675: Relationship functions not using an index in some cases
----------------------+---------------------------
  Reporter:  robe     |      Owner:  pramsey
      Type:  defect   |     Status:  new
  Priority:  blocker  |  Milestone:  PostGIS 2.3.2
 Component:  postgis  |    Version:  2.3.x
Resolution:           |   Keywords:
----------------------+---------------------------

Comment (by robe):

 okay on closer inspection, the ST_SetSRID seems to be at fault.

 because this has the index kick in.

 {{{
 SELECT e.gid
 FROM e1 , e2
 WHERE ST_Intersects(e1.geom, ST_MakePoint(e2.longitude, e2.latitude) )
 }}}


 So this could be a simple fix.  I suspect the issue exists in 9.5 as well
 but still need to check that.

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3675#comment:1>
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-tickets mailing list