RETURN gml;
END
$$
-LANGUAGE 'plpgsql';
+LANGUAGE 'plpgsql' IMMUTABLE;
--} _AsGMLNode(id, point, nsprefix, precision, options, idprefix, gmlVersion)
--{
RETURN gml;
END
$$
-LANGUAGE 'plpgsql';
+LANGUAGE 'plpgsql' VOLATILE; -- writes into visitedTable
--} _AsGMLEdge(id, start_node, end_node, line, visitedTable, nsprefix, precision, options, idprefix, gmlver)
--{
RETURN gml;
END
$$
-LANGUAGE 'plpgsql';
+LANGUAGE 'plpgsql' VOLATILE; -- writes into visited table
--} _AsGMLFace(toponame, id, visitedTable, nsprefix, precision, options, idprefix, gmlver)
--{
END
$$
-LANGUAGE 'plpgsql';
+LANGUAGE 'plpgsql' VOLATILE; -- writes into visited table
--} AsGML(TopoGeometry, nsprefix, precision, options, visitedTable, idprefix, gmlver)
--{
$$
SELECT topology.AsGML($1, $2, $3, $4, $5, $6, 3);
$$
-LANGUAGE 'sql';
+LANGUAGE 'sql' VOLATILE; -- writes into visited table
--} AsGML(TopoGeometry, nsprefix, precision, options, visitedTable, idprefix)
--{
RETURNS text AS
$$
SELECT topology.AsGML($1, $2, $3, $4, $5, '');
-$$ LANGUAGE 'sql';
+$$ LANGUAGE 'sql' VOLATILE; -- writes into visited table
-- } AsGML(TopoGeometry, nsprefix, precision, options)
RETURNS text AS
$$
SELECT topology.AsGML($1, $2, $3, $4, NULL);
-$$ LANGUAGE 'sql';
+$$ LANGUAGE 'sql' STABLE; -- does NOT write into visited table
-- } AsGML(TopoGeometry, nsprefix, precision, options)
--{
RETURNS text AS
$$
SELECT topology.AsGML($1, $2, 15, 1, NULL);
-$$ LANGUAGE 'sql';
+$$ LANGUAGE 'sql' STABLE; -- does NOT write into visited table
-- } AsGML(TopoGeometry, nsprefix)
--{
RETURNS text AS
$$
SELECT topology.AsGML($1, 'gml', 15, 1, $2);
-$$ LANGUAGE 'sql';
+$$ LANGUAGE 'sql' VOLATILE; -- writes into visited table
-- } AsGML(TopoGeometry, visited_table)
--{
RETURNS text AS
$$
SELECT topology.AsGML($1, $3, 15, 1, $2);
-$$ LANGUAGE 'sql';
+$$ LANGUAGE 'sql' VOLATILE; -- writes into visited table
-- } AsGML(TopoGeometry, visited_table, nsprefix)
RETURNS text AS
$$
SELECT topology.AsGML($1, 'gml');
-$$ LANGUAGE 'sql';
+$$ LANGUAGE 'sql' STABLE; -- does NOT write into visited table
-- } AsGML(TopoGeometry)