Commit acd1ac8d authored by Raúl Marín's avatar Raúl Marín

Update function costs

parent 591d0c69
......@@ -103,34 +103,35 @@ CREATE OR REPLACE FUNCTION ST_AsText(geography)
RETURNS TEXT
AS 'MODULE_PATHNAME','LWGEOM_asText'
LANGUAGE 'c' IMMUTABLE STRICT PARALLEL SAFE
_COST_LOW;
_COST_MEDIUM;
-- Availability: 2.5.0
CREATE OR REPLACE FUNCTION ST_AsText(geography, int4)
RETURNS TEXT
AS 'MODULE_PATHNAME','LWGEOM_asText'
LANGUAGE 'c' IMMUTABLE STRICT PARALLEL SAFE
_COST_LOW;
_COST_MEDIUM;
-- Availability: 1.5.0 - this is just a hack to prevent unknown from causing ambiguous name because of geography
CREATE OR REPLACE FUNCTION ST_AsText(text)
RETURNS text AS
$$ SELECT @[email protected]_AsText($1::@[email protected]); $$
LANGUAGE 'sql' IMMUTABLE STRICT PARALLEL SAFE;
LANGUAGE 'sql' IMMUTABLE STRICT PARALLEL SAFE
_COST_MEDIUM;
-- Availability: 1.5.0
CREATE OR REPLACE FUNCTION ST_GeographyFromText(text)
RETURNS geography
AS 'MODULE_PATHNAME','geography_from_text'
LANGUAGE 'c' IMMUTABLE STRICT PARALLEL SAFE
_COST_LOW;
_COST_MEDIUM;
-- Availability: 1.5.0
CREATE OR REPLACE FUNCTION ST_GeogFromText(text)
RETURNS geography
AS 'MODULE_PATHNAME','geography_from_text'
LANGUAGE 'c' IMMUTABLE STRICT PARALLEL SAFE
_COST_LOW;
_COST_MEDIUM;
-- Availability: 1.5.0
CREATE OR REPLACE FUNCTION ST_GeogFromWKB(bytea)
......@@ -407,13 +408,14 @@ CREATE OR REPLACE FUNCTION ST_AsSVG(geog geography, rel int4 DEFAULT 0, maxdecim
RETURNS text
AS 'MODULE_PATHNAME','geography_as_svg'
LANGUAGE 'c' IMMUTABLE STRICT PARALLEL SAFE
_COST_LOW;
_COST_MEDIUM;
-- Availability: 1.5.0 - this is just a hack to prevent unknown from causing ambiguous name because of geography
CREATE OR REPLACE FUNCTION ST_AsSVG(text)
RETURNS text AS
$$ SELECT @[email protected]_AsSVG($1::@[email protected],0,15); $$
LANGUAGE 'sql' IMMUTABLE STRICT PARALLEL SAFE;
LANGUAGE 'sql' IMMUTABLE STRICT PARALLEL SAFE
_COST_MEDIUM;
--
-- GML OUTPUT
......@@ -428,20 +430,21 @@ CREATE OR REPLACE FUNCTION ST_AsGML(version int4, geog geography, maxdecimaldigi
RETURNS text
AS 'MODULE_PATHNAME','geography_as_gml'
LANGUAGE 'c' IMMUTABLE STRICT PARALLEL SAFE
_COST_LOW;
_COST_MEDIUM;
CREATE OR REPLACE FUNCTION ST_AsGML(geog geography, maxdecimaldigits int4 DEFAULT 15, options int4 DEFAULT 0, nprefix text DEFAULT 'gml', id text DEFAULT '')
RETURNS text
AS 'MODULE_PATHNAME','geography_as_gml'
LANGUAGE 'c' IMMUTABLE STRICT PARALLEL SAFE
_COST_LOW;
_COST_MEDIUM;
-- Availability: 1.5.0 - this is just a hack to prevent unknown from causing ambiguous name because of geography
-- Change 2.0.0 to use base function
CREATE OR REPLACE FUNCTION ST_AsGML(text)
RETURNS text AS
$$ SELECT @[email protected]_ST_AsGML(2,$1::@[email protected],15,0, NULL, NULL); $$
LANGUAGE 'sql' IMMUTABLE STRICT PARALLEL SAFE;
LANGUAGE 'sql' IMMUTABLE STRICT PARALLEL SAFE
_COST_MEDIUM;
--
-- KML OUTPUT
......@@ -453,14 +456,15 @@ CREATE OR REPLACE FUNCTION ST_AsKML(geog geography, maxdecimaldigits int4 DEFAUL
RETURNS text
AS 'MODULE_PATHNAME','geography_as_kml'
LANGUAGE 'c' IMMUTABLE STRICT PARALLEL SAFE
_COST_LOW;
_COST_MEDIUM;
-- Availability: 1.5.0 - this is just a hack to prevent unknown from causing ambiguous name because of geography
-- Deprecated 2.0.0
CREATE OR REPLACE FUNCTION ST_AsKML(text)
RETURNS text AS
$$ SELECT @[email protected]_AsKML($1::@[email protected], 15); $$
LANGUAGE 'sql' IMMUTABLE STRICT PARALLEL SAFE;
LANGUAGE 'sql' IMMUTABLE STRICT PARALLEL SAFE
_COST_MEDIUM;
--
-- GeoJson Output
......@@ -470,14 +474,15 @@ CREATE OR REPLACE FUNCTION ST_AsGeoJson(geog geography, maxdecimaldigits int4 DE
RETURNS text
AS 'MODULE_PATHNAME','geography_as_geojson'
LANGUAGE 'c' IMMUTABLE STRICT PARALLEL SAFE
_COST_LOW;
_COST_MEDIUM;
-- Availability: 1.5.0 - this is just a hack to prevent unknown from causing ambiguous name because of geography
-- Deprecated in 2.0.0
CREATE OR REPLACE FUNCTION ST_AsGeoJson(text)
RETURNS text AS
$$ SELECT @[email protected]_AsGeoJson($1::@[email protected], 9, 0); $$
LANGUAGE 'sql' IMMUTABLE STRICT PARALLEL SAFE;
LANGUAGE 'sql' IMMUTABLE STRICT PARALLEL SAFE
_COST_MEDIUM;
-- ---------- ---------- ---------- ---------- ---------- ---------- ----------
......@@ -703,13 +708,14 @@ CREATE OR REPLACE FUNCTION ST_AsEWKT(geography)
RETURNS TEXT
AS 'MODULE_PATHNAME','LWGEOM_asEWKT'
LANGUAGE 'c' IMMUTABLE STRICT PARALLEL SAFE
_COST_LOW;
_COST_MEDIUM;
-- Availability: 2.0.0 - this is just a hack to prevent unknown from causing ambiguous name because of geography
CREATE OR REPLACE FUNCTION ST_AsEWKT(text)
RETURNS text AS
$$ SELECT @[email protected]_AsEWKT($1::@[email protected]); $$
LANGUAGE 'sql' IMMUTABLE STRICT PARALLEL SAFE;
LANGUAGE 'sql' IMMUTABLE STRICT PARALLEL SAFE
_COST_MEDIUM;
-- Availability: 2.0.0
CREATE OR REPLACE FUNCTION GeometryType(geography)
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment