Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit202ac08

Browse files
committed
Update unaccent extension for parallel query.
All functions provided by this extension are PARALLEL SAFE.Andreas Karlsson
1 parent6b7d11f commit202ac08

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

‎contrib/unaccent/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ MODULE_big = unaccent
44
OBJS = unaccent.o$(WIN32RES)
55

66
EXTENSION = unaccent
7-
DATA = unaccent--1.0.sql unaccent--unpackaged--1.0.sql
7+
DATA = unaccent--1.1.sql unaccent--1.0--1.1.sql unaccent--unpackaged--1.0.sql
88
DATA_TSEARCH = unaccent.rules
99
PGFILEDESC = "unaccent - text search dictionary that removes accents"
1010

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* contrib/unaccent/unaccent--1.0--1.1.sql*/
2+
3+
-- complain if script is sourced in psql, rather than via ALTER EXTENSION
4+
\echo Use"ALTER EXTENSION unaccent UPDATE TO '1.1'" to load this file. \quit
5+
6+
ALTERFUNCTION unaccent(regdictionary,text) PARALLEL SAFE;
7+
ALTERFUNCTION unaccent(text) PARALLEL SAFE;
8+
ALTERFUNCTION unaccent_init(internal) PARALLEL SAFE;
9+
ALTERFUNCTION unaccent_lexize(internal, internal, internal, internal) PARALLEL SAFE;

‎contrib/unaccent/unaccent--1.0.sqlrenamed to‎contrib/unaccent/unaccent--1.1.sql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
/* contrib/unaccent/unaccent--1.0.sql*/
1+
/* contrib/unaccent/unaccent--1.1.sql*/
22

33
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
44
\echo Use"CREATE EXTENSION unaccent" to load this file. \quit
55

66
CREATEFUNCTIONunaccent(regdictionary,text)
77
RETURNStext
88
AS'MODULE_PATHNAME','unaccent_dict'
9-
LANGUAGE C STABLE STRICT;
9+
LANGUAGE C STABLE STRICT PARALLEL SAFE;
1010

1111
CREATEFUNCTIONunaccent(text)
1212
RETURNStext
1313
AS'MODULE_PATHNAME','unaccent_dict'
14-
LANGUAGE C STABLE STRICT;
14+
LANGUAGE C STABLE STRICT PARALLEL SAFE;
1515

1616
CREATEFUNCTIONunaccent_init(internal)
1717
RETURNS internal
1818
AS'MODULE_PATHNAME','unaccent_init'
19-
LANGUAGE C;
19+
LANGUAGE C PARALLEL SAFE;
2020

2121
CREATEFUNCTIONunaccent_lexize(internal,internal,internal,internal)
2222
RETURNS internal
2323
AS'MODULE_PATHNAME','unaccent_lexize'
24-
LANGUAGE C;
24+
LANGUAGE C PARALLEL SAFE;
2525

2626
CREATETEXT SEARCH TEMPLATE unaccent (
2727
INIT= unaccent_init,

‎contrib/unaccent/unaccent.control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# unaccent extension
22
comment = 'text search dictionary that removes accents'
3-
default_version = '1.0'
3+
default_version = '1.1'
44
module_pathname = '$libdir/unaccent'
55
relocatable = true

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp