]> granicus.if.org Git - postgis/commitdiff
Tag some functions as STABLE or even IMMUTABLE (from volatile) - see bug #955
authorSandro Santilli <strk@keybit.net>
Tue, 17 May 2011 14:42:44 +0000 (14:42 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 17 May 2011 14:42:44 +0000 (14:42 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7169 b70326c6-7e19-0410-871a-916f4a2858ee

topology/sql/manage/TopologySummary.sql
topology/sql/query/getedgebypoint.sql
topology/sql/query/getfacebypoint.sql
topology/sql/query/getnodebypoint.sql
topology/sql/topoelement/topoelement_agg.sql

index 18ece4309631da4053627c34264b5827e8392f93..55c2425ec48d14ff4e49dbfa232405a46dc0ae25 100644 (file)
@@ -147,6 +147,6 @@ BEGIN
   RETURN ret;
 END
 $$
-LANGUAGE 'plpgsql' VOLATILE STRICT;
+LANGUAGE 'plpgsql' STABLE STRICT;
 
 --} TopologySummary
index cf4030df84559db181a862240cc60ce4793dd508..1161bcb8458119e6b7c64330b95633b808f109ef 100644 (file)
@@ -87,5 +87,5 @@ BEGIN
        
 END
 $$
-LANGUAGE 'plpgsql' STRICT;
+LANGUAGE 'plpgsql' STABLE STRICT;
 --} GetEdgeByPoint
index cd4323623b6c0e2ac8ac9bb4dc2acb8a6b3531a3..23946dbcfccaef6834a042b90b66ce2d3a9b0d0e 100644 (file)
@@ -153,6 +153,6 @@ BEGIN
        
 END
 $$
-LANGUAGE 'plpgsql' STRICT;
+LANGUAGE 'plpgsql' STABLE STRICT;
 --} GetFaceByPoint
 
index fb0931609dc10704d0c5fd96f3b93014b0c1f611..b9d13b5a785ee48af4731708f54ebfed7f3e0840 100644 (file)
@@ -84,6 +84,6 @@ BEGIN
        
 END
 $$
-LANGUAGE 'plpgsql' STRICT;
+LANGUAGE 'plpgsql' STABLE STRICT;
 --} GetNodeByPoint
 
index 6c51f5475818e43eca988d08dc7c9cfb0ca6703e..ce707edb8a5e9d10a2d902d8426c4137620a912e 100644 (file)
@@ -41,7 +41,7 @@ $$
                        topology.TopoElementArray($1::int[][]||$2::int[])
                END;
 $$
-LANGUAGE 'sql';
+LANGUAGE 'sql' IMMUTABLE;
 --} TopoElementArray_append
 
 --{