[postgis-tickets] [PostGIS] #2895: Increase cost of ST_ConvexHull(raster)
PostGIS
trac at osgeo.org
Fri Aug 15 03:26:55 PDT 2014
#2895: Increase cost of ST_ConvexHull(raster)
-------------------------+--------------------------------------------------
Reporter: strk | Owner: pramsey
Type: enhancement | Status: new
Priority: medium | Milestone: PostGIS 2.2.0
Component: postgis | Version: trunk
Keywords: |
-------------------------+--------------------------------------------------
The cost of ST_ConvexHull(raster) is currently set to 1.
For comparison ST_ConvexHull(geometry) is 100, and st_intersects(raster,
raster) is 1000.
Real world cases have been found where a cost of 100 is not enough for the
planner to choose a functional index scan for a query using a spatial
condition on the raster column, while such index scan would take half the
time (probably due to the pre-computation of the function output). See
http://lists.osgeo.org/pipermail/postgis-devel/2014-August/024461.html
Raising it to 200 seems enough for the specific case.
It's to be determined out to deal with upgrades on function cost changes.
See #2839 for the change that made the problem more evident.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2895>
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