[postgis-tickets] r17310 - Cost a few more opreators

Paul Ramsey pramsey at cleverelephant.ca
Fri Mar 8 03:35:12 PST 2019


Author: pramsey
Date: 2019-03-08 15:35:12 -0800 (Fri, 08 Mar 2019)
New Revision: 17310

Modified:
   trunk/postgis/postgis.sql.in
Log:
Cost a few more opreators


Modified: trunk/postgis/postgis.sql.in
===================================================================
--- trunk/postgis/postgis.sql.in	2019-03-08 23:18:45 UTC (rev 17309)
+++ trunk/postgis/postgis.sql.in	2019-03-08 23:35:12 UTC (rev 17310)
@@ -552,7 +552,8 @@
 CREATE OR REPLACE FUNCTION geometry_overlaps(geom1 geometry, geom2 geometry)
 	RETURNS boolean
 	AS 'MODULE_PATHNAME' ,'gserialized_overlaps_2d'
-	LANGUAGE 'c' IMMUTABLE STRICT _PARALLEL;
+	LANGUAGE 'c' IMMUTABLE STRICT _PARALLEL
+	_COST_LOW;
 
 -- Availability: 0.1.0
 -- Changed: 2.0.0 use gserialized selectivity estimators
@@ -567,7 +568,8 @@
 CREATE OR REPLACE FUNCTION geometry_same(geom1 geometry, geom2 geometry)
 	RETURNS boolean
 	AS 'MODULE_PATHNAME' ,'gserialized_same_2d'
-	LANGUAGE 'c' IMMUTABLE STRICT _PARALLEL;
+	LANGUAGE 'c' IMMUTABLE STRICT _PARALLEL
+	_COST_LOW;
 
 -- Availability: 0.1.0
 CREATE OPERATOR ~= (
@@ -582,7 +584,8 @@
 CREATE OR REPLACE FUNCTION geometry_distance_centroid(geom1 geometry, geom2 geometry)
 	RETURNS float8
 	AS 'MODULE_PATHNAME', 'ST_Distance'
-	LANGUAGE 'c' IMMUTABLE STRICT _PARALLEL;
+	LANGUAGE 'c' IMMUTABLE STRICT _PARALLEL
+	_COST_MEDIUM;
 
 -- Availability: 2.0.0
 CREATE OR REPLACE FUNCTION geometry_distance_box(geom1 geometry, geom2 geometry)



More information about the postgis-tickets mailing list