mirror of https://github.com/postgres/postgres
to make it faster to implement indexed queries where some keys are common and some are rare. Patch by Jeff Janespull/14/head
parent
1a51180080
commit
97f3014647
@ -0,0 +1,12 @@ |
|||||||
|
/* contrib/pg_trgm/pg_trgm--1.1--1.2.sql */ |
||||||
|
|
||||||
|
-- complain if script is sourced in psql, rather than via ALTER EXTENSION |
||||||
|
\echo Use "ALTER EXTENSION pg_trgm UPDATE TO '1.2'" to load this file. \quit |
||||||
|
|
||||||
|
CREATE FUNCTION gin_trgm_triconsistent(internal, int2, text, int4, internal, internal, internal) |
||||||
|
RETURNS "char" |
||||||
|
AS 'MODULE_PATHNAME' |
||||||
|
LANGUAGE C IMMUTABLE STRICT; |
||||||
|
|
||||||
|
ALTER OPERATOR FAMILY gin_trgm_ops USING gin ADD |
||||||
|
FUNCTION 6 (text, text) gin_trgm_triconsistent (internal, int2, text, int4, internal, internal, internal); |
@ -1,5 +1,5 @@ |
|||||||
# pg_trgm extension |
# pg_trgm extension |
||||||
comment = 'text similarity measurement and index searching based on trigrams' |
comment = 'text similarity measurement and index searching based on trigrams' |
||||||
default_version = '1.1' |
default_version = '1.2' |
||||||
module_pathname = '$libdir/pg_trgm' |
module_pathname = '$libdir/pg_trgm' |
||||||
relocatable = true |
relocatable = true |
||||||
|
Loading…
Reference in new issue