Content-Length: 295614 | pFad | http://github.com/postgrespro/postgres/commit/9299f6179838cef8aa1123f6fb76f0d3d6f2decc

90 unaccent: mark unaccent() functions as immutable · postgrespro/postgres@9299f61 · GitHub
Skip to content

Commit 9299f61

Browse files
committed
unaccent: mark unaccent() functions as immutable
Suggestion from Pavel Stehule
1 parent ee1e566 commit 9299f61

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

contrib/unaccent/unaccent--1.0.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
CREATE FUNCTION unaccent(regdictionary, text)
77
RETURNS text
88
AS 'MODULE_PATHNAME', 'unaccent_dict'
9-
LANGUAGE C STABLE STRICT;
9+
LANGUAGE C IMMUTABLE STRICT;
1010

1111
CREATE FUNCTION unaccent(text)
1212
RETURNS text
1313
AS 'MODULE_PATHNAME', 'unaccent_dict'
14-
LANGUAGE C STABLE STRICT;
14+
LANGUAGE C IMMUTABLE STRICT;
1515

1616
CREATE FUNCTION unaccent_init(internal)
1717
RETURNS internal

contrib/unaccent/unaccent--unpackaged--1.0.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ALTER EXTENSION unaccent ADD function unaccent_lexize(internal,internal,internal
1010
ALTER EXTENSION unaccent ADD text search template unaccent;
1111
ALTER EXTENSION unaccent ADD text search dictionary unaccent;
1212

13-
-- These functions are marked as stable in 9.1, were not before:
13+
-- These functions were marked as stable in 9.1; they were now marked as immutable
1414

15-
ALTER FUNCTION unaccent(regdictionary, text) STABLE;
16-
ALTER FUNCTION unaccent(text) STABLE;
15+
ALTER FUNCTION unaccent(regdictionary, text) IMMUTABLE;
16+
ALTER FUNCTION unaccent(text) IMMUTABLE;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/9299f6179838cef8aa1123f6fb76f0d3d6f2decc

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy