]> granicus.if.org Git - postgis/commitdiff
Cost on ST_SetSRID is preventing index use with relation functions. Change from 10...
authorRegina Obe <lr@pcorp.us>
Sat, 3 Dec 2016 20:36:47 +0000 (20:36 +0000)
committerRegina Obe <lr@pcorp.us>
Sat, 3 Dec 2016 20:36:47 +0000 (20:36 +0000)
References #3675 for PostGIS 2.4

git-svn-id: http://svn.osgeo.org/postgis/trunk@15267 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/postgis.sql.in

index 3df912efb2a3e44c242c7ee3eece69c1bafb28d5..2a8114bf1f92c1ce0c5036307d752d1e3e28429b 100644 (file)
@@ -2746,7 +2746,7 @@ CREATE OR REPLACE FUNCTION ST_SetSRID(geometry,int4)
        RETURNS geometry
        AS 'MODULE_PATHNAME','LWGEOM_set_srid'
        LANGUAGE 'c' IMMUTABLE STRICT _PARALLEL
-       COST 10;
+       COST 1;
 
 CREATE OR REPLACE FUNCTION ST_SRID(geometry)
        RETURNS int4