From: Bruce Momjian Date: Mon, 18 Nov 2013 20:54:34 +0000 (-0500) Subject: unaccent: Revert patch 9299f6179838cef8aa1123f6fb76f0d3d6f2decc X-Git-Tag: REL9_4_BETA1~925 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0dbf9a6a91675b99a5097528729c38e7f3015646;p=postgresql unaccent: Revert patch 9299f6179838cef8aa1123f6fb76f0d3d6f2decc The reverted patch to change functions from strict to immutable was incorrect and needs additional research. --- diff --git a/contrib/unaccent/unaccent--1.0.sql b/contrib/unaccent/unaccent--1.0.sql index 072b749e4b..9085ca473f 100644 --- a/contrib/unaccent/unaccent--1.0.sql +++ b/contrib/unaccent/unaccent--1.0.sql @@ -6,12 +6,12 @@ CREATE FUNCTION unaccent(regdictionary, text) RETURNS text AS 'MODULE_PATHNAME', 'unaccent_dict' - LANGUAGE C IMMUTABLE STRICT; + LANGUAGE C STABLE STRICT; CREATE FUNCTION unaccent(text) RETURNS text AS 'MODULE_PATHNAME', 'unaccent_dict' - LANGUAGE C IMMUTABLE STRICT; + LANGUAGE C STABLE STRICT; CREATE FUNCTION unaccent_init(internal) RETURNS internal diff --git a/contrib/unaccent/unaccent--unpackaged--1.0.sql b/contrib/unaccent/unaccent--unpackaged--1.0.sql index 5bff74ed6d..abd06983ac 100644 --- a/contrib/unaccent/unaccent--unpackaged--1.0.sql +++ b/contrib/unaccent/unaccent--unpackaged--1.0.sql @@ -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 dictionary unaccent; --- These functions were marked as stable in 9.1; they were now marked as immutable +-- These functions are marked as stable in 9.1, were not before: -ALTER FUNCTION unaccent(regdictionary, text) IMMUTABLE; -ALTER FUNCTION unaccent(text) IMMUTABLE; +ALTER FUNCTION unaccent(regdictionary, text) STABLE; +ALTER FUNCTION unaccent(text) STABLE;