Commit 9299f617 authored by Bruce Momjian's avatar Bruce Momjian

unaccent: mark unaccent() functions as immutable

Suggestion from Pavel Stehule
parent ee1e5662
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
CREATE FUNCTION unaccent(regdictionary, text) CREATE FUNCTION unaccent(regdictionary, text)
RETURNS text RETURNS text
AS 'MODULE_PATHNAME', 'unaccent_dict' AS 'MODULE_PATHNAME', 'unaccent_dict'
LANGUAGE C STABLE STRICT; LANGUAGE C IMMUTABLE STRICT;
CREATE FUNCTION unaccent(text) CREATE FUNCTION unaccent(text)
RETURNS text RETURNS text
AS 'MODULE_PATHNAME', 'unaccent_dict' AS 'MODULE_PATHNAME', 'unaccent_dict'
LANGUAGE C STABLE STRICT; LANGUAGE C IMMUTABLE STRICT;
CREATE FUNCTION unaccent_init(internal) CREATE FUNCTION unaccent_init(internal)
RETURNS internal RETURNS internal
......
...@@ -10,7 +10,7 @@ ALTER EXTENSION unaccent ADD function unaccent_lexize(internal,internal,internal ...@@ -10,7 +10,7 @@ ALTER EXTENSION unaccent ADD function unaccent_lexize(internal,internal,internal
ALTER EXTENSION unaccent ADD text search template unaccent; ALTER EXTENSION unaccent ADD text search template unaccent;
ALTER EXTENSION unaccent ADD text search dictionary unaccent; ALTER EXTENSION unaccent ADD text search dictionary unaccent;
-- These functions are marked as stable in 9.1, were not before: -- These functions were marked as stable in 9.1; they were now marked as immutable
ALTER FUNCTION unaccent(regdictionary, text) STABLE; ALTER FUNCTION unaccent(regdictionary, text) IMMUTABLE;
ALTER FUNCTION unaccent(text) STABLE; ALTER FUNCTION unaccent(text) IMMUTABLE;
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