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.
This commit is contained in:
Tom Lane 2016-06-20 11:29:47 -04:00
parent 3557b1791b
commit e611515dd6
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ UPDATE pg_catalog.pg_proc SET
prorettype = 'gtrgm'::pg_catalog.regtype
WHERE oid = pg_catalog.to_regprocedure('gtrgm_union(internal,internal)');
ALTER FUNCTION set_limit(float4) PARALLEL RESTRICTED;
ALTER FUNCTION set_limit(float4) PARALLEL UNSAFE;
ALTER FUNCTION show_limit() PARALLEL SAFE;
ALTER FUNCTION show_trgm(text) PARALLEL SAFE;
ALTER FUNCTION similarity(text, text) PARALLEL SAFE;

View File

@ -7,7 +7,7 @@
CREATE FUNCTION set_limit(float4)
RETURNS float4
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT VOLATILE PARALLEL RESTRICTED;
LANGUAGE C STRICT VOLATILE PARALLEL UNSAFE;
-- Deprecated function
CREATE FUNCTION show_limit()