Content-Length: 284982 | pFad | http://github.com/postgrespro/postgres_cluster/commit/e611515dd6b8edad56baa0f3ae31ff637ca54d52

64 pg_trgm's set_limit() function is parallel unsafe, not parallel restr… · postgrespro/postgres_cluster@e611515 · GitHub
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)








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_cluster/commit/e611515dd6b8edad56baa0f3ae31ff637ca54d52

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy