Skip to content

Commit e611515

Browse files
committed
pg_trgm's set_limit() function is parallel unsafe, not parallel restricted.
Per buildfarm. Fortunately, it's not quite too late to squeeze this fix into the pg_trgm 1.3 update.
1 parent 3557b17 commit e611515

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/pg_trgm/pg_trgm--1.2--1.3.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ UPDATE pg_catalog.pg_proc SET
2323
prorettype = 'gtrgm'::pg_catalog.regtype
2424
WHERE oid = pg_catalog.to_regprocedure('gtrgm_union(internal,internal)');
2525

26-
ALTER FUNCTION set_limit(float4) PARALLEL RESTRICTED;
26+
ALTER FUNCTION set_limit(float4) PARALLEL UNSAFE;
2727
ALTER FUNCTION show_limit() PARALLEL SAFE;
2828
ALTER FUNCTION show_trgm(text) PARALLEL SAFE;
2929
ALTER FUNCTION similarity(text, text) PARALLEL SAFE;

contrib/pg_trgm/pg_trgm--1.3.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
CREATE FUNCTION set_limit(float4)
88
RETURNS float4
99
AS 'MODULE_PATHNAME'
10-
LANGUAGE C STRICT VOLATILE PARALLEL RESTRICTED;
10+
LANGUAGE C STRICT VOLATILE PARALLEL UNSAFE;
1111

1212
-- Deprecated function
1313
CREATE FUNCTION show_limit()

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