From: Sandro Santilli Date: Tue, 17 May 2011 14:42:44 +0000 (+0000) Subject: Tag some functions as STABLE or even IMMUTABLE (from volatile) - see bug #955 X-Git-Tag: 2.0.0alpha1~1642 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82eb861308a71a73ae9aefdae773cd4305273c26;p=postgis Tag some functions as STABLE or even IMMUTABLE (from volatile) - see bug #955 git-svn-id: http://svn.osgeo.org/postgis/trunk@7169 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/topology/sql/manage/TopologySummary.sql b/topology/sql/manage/TopologySummary.sql index 18ece4309..55c2425ec 100644 --- a/topology/sql/manage/TopologySummary.sql +++ b/topology/sql/manage/TopologySummary.sql @@ -147,6 +147,6 @@ BEGIN RETURN ret; END $$ -LANGUAGE 'plpgsql' VOLATILE STRICT; +LANGUAGE 'plpgsql' STABLE STRICT; --} TopologySummary diff --git a/topology/sql/query/getedgebypoint.sql b/topology/sql/query/getedgebypoint.sql index cf4030df8..1161bcb84 100644 --- a/topology/sql/query/getedgebypoint.sql +++ b/topology/sql/query/getedgebypoint.sql @@ -87,5 +87,5 @@ BEGIN END $$ -LANGUAGE 'plpgsql' STRICT; +LANGUAGE 'plpgsql' STABLE STRICT; --} GetEdgeByPoint diff --git a/topology/sql/query/getfacebypoint.sql b/topology/sql/query/getfacebypoint.sql index cd4323623..23946dbcf 100644 --- a/topology/sql/query/getfacebypoint.sql +++ b/topology/sql/query/getfacebypoint.sql @@ -153,6 +153,6 @@ BEGIN END $$ -LANGUAGE 'plpgsql' STRICT; +LANGUAGE 'plpgsql' STABLE STRICT; --} GetFaceByPoint diff --git a/topology/sql/query/getnodebypoint.sql b/topology/sql/query/getnodebypoint.sql index fb0931609..b9d13b5a7 100644 --- a/topology/sql/query/getnodebypoint.sql +++ b/topology/sql/query/getnodebypoint.sql @@ -84,6 +84,6 @@ BEGIN END $$ -LANGUAGE 'plpgsql' STRICT; +LANGUAGE 'plpgsql' STABLE STRICT; --} GetNodeByPoint diff --git a/topology/sql/topoelement/topoelement_agg.sql b/topology/sql/topoelement/topoelement_agg.sql index 6c51f5475..ce707edb8 100644 --- a/topology/sql/topoelement/topoelement_agg.sql +++ b/topology/sql/topoelement/topoelement_agg.sql @@ -41,7 +41,7 @@ $$ topology.TopoElementArray($1::int[][]||$2::int[]) END; $$ -LANGUAGE 'sql'; +LANGUAGE 'sql' IMMUTABLE; --} TopoElementArray_append --{