Commit 202ac08c authored by Robert Haas's avatar Robert Haas

Update unaccent extension for parallel query.

All functions provided by this extension are PARALLEL SAFE.

Andreas Karlsson
parent 6b7d11ff
......@@ -4,7 +4,7 @@ MODULE_big = unaccent
OBJS = unaccent.o $(WIN32RES)
EXTENSION = unaccent
DATA = unaccent--1.0.sql unaccent--unpackaged--1.0.sql
DATA = unaccent--1.1.sql unaccent--1.0--1.1.sql unaccent--unpackaged--1.0.sql
DATA_TSEARCH = unaccent.rules
PGFILEDESC = "unaccent - text search dictionary that removes accents"
......
/* contrib/unaccent/unaccent--1.0--1.1.sql */
-- complain if script is sourced in psql, rather than via ALTER EXTENSION
\echo Use "ALTER EXTENSION unaccent UPDATE TO '1.1'" to load this file. \quit
ALTER FUNCTION unaccent(regdictionary, text) PARALLEL SAFE;
ALTER FUNCTION unaccent(text) PARALLEL SAFE;
ALTER FUNCTION unaccent_init(internal) PARALLEL SAFE;
ALTER FUNCTION unaccent_lexize(internal, internal, internal, internal) PARALLEL SAFE;
/* contrib/unaccent/unaccent--1.0.sql */
/* contrib/unaccent/unaccent--1.1.sql */
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION unaccent" to load this file. \quit
......@@ -6,22 +6,22 @@
CREATE FUNCTION unaccent(regdictionary, text)
RETURNS text
AS 'MODULE_PATHNAME', 'unaccent_dict'
LANGUAGE C STABLE STRICT;
LANGUAGE C STABLE STRICT PARALLEL SAFE;
CREATE FUNCTION unaccent(text)
RETURNS text
AS 'MODULE_PATHNAME', 'unaccent_dict'
LANGUAGE C STABLE STRICT;
LANGUAGE C STABLE STRICT PARALLEL SAFE;
CREATE FUNCTION unaccent_init(internal)
RETURNS internal
AS 'MODULE_PATHNAME', 'unaccent_init'
LANGUAGE C;
LANGUAGE C PARALLEL SAFE;
CREATE FUNCTION unaccent_lexize(internal,internal,internal,internal)
RETURNS internal
AS 'MODULE_PATHNAME', 'unaccent_lexize'
LANGUAGE C;
LANGUAGE C PARALLEL SAFE;
CREATE TEXT SEARCH TEMPLATE unaccent (
INIT = unaccent_init,
......
# unaccent extension
comment = 'text search dictionary that removes accents'
default_version = '1.0'
default_version = '1.1'
module_pathname = '$libdir/unaccent'
relocatable = true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment