Skip to content

Commit cb1ab30

Browse files
committed
Fix completely-bogus volatility markings on pg_trgm functions.
1 parent 9fd8843 commit cb1ab30

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

contrib/pg_trgm/pg_trgm.sql.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
/* $PostgreSQL: pgsql/contrib/pg_trgm/pg_trgm.sql.in,v 1.6 2007/11/13 04:24:28 momjian Exp $ */
1+
/* $PostgreSQL: pgsql/contrib/pg_trgm/pg_trgm.sql.in,v 1.7 2007/12/09 02:22:46 tgl Exp $ */
22

33
-- Adjust this setting to control where the objects get created.
44
SET search_path = public;
55

66
CREATE OR REPLACE FUNCTION set_limit(float4)
77
RETURNS float4
88
AS 'MODULE_PATHNAME'
9-
LANGUAGE C STRICT IMMUTABLE;
9+
LANGUAGE C STRICT VOLATILE;
1010

1111
CREATE OR REPLACE FUNCTION show_limit()
1212
RETURNS float4
1313
AS 'MODULE_PATHNAME'
14-
LANGUAGE C STRICT IMMUTABLE;
14+
LANGUAGE C STRICT STABLE;
1515

1616
CREATE OR REPLACE FUNCTION show_trgm(text)
1717
RETURNS _text
@@ -26,7 +26,7 @@ LANGUAGE C STRICT IMMUTABLE;
2626
CREATE OR REPLACE FUNCTION similarity_op(text,text)
2727
RETURNS bool
2828
AS 'MODULE_PATHNAME'
29-
LANGUAGE C STRICT IMMUTABLE;
29+
LANGUAGE C STRICT STABLE;
3030

3131
CREATE OPERATOR % (
3232
LEFTARG = text,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy