pgsql: Add strict_word_similarity to pg_trgm module

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add strict_word_similarity to pg_trgm module
Date: 2018-03-21 11:58:03
Message-ID: E1eycNX-0004mV-Ie@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add strict_word_similarity to pg_trgm module

strict_word_similarity is similar to existing word_similarity function but
it takes into account word boundaries to compute similarity.

Author: Alexander Korotkov
Review by: David Steele, Liudmila Mantrova, me
Discussion: https://www.postgresql.org/message-id/flat/CY4PR17MB13207ED8310F847CF117EED0D85A0(at)CY4PR17MB1320(dot)namprd17(dot)prod(dot)outlook(dot)com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/be8a7a6866276b228b4ffaa3003e1dc2dd1d140a

Modified Files
--------------
contrib/pg_trgm/Makefile | 5 +-
contrib/pg_trgm/expected/pg_strict_word_trgm.out | 1025 ++++++++++++++++++++++
contrib/pg_trgm/pg_trgm--1.3--1.4.sql | 68 ++
contrib/pg_trgm/pg_trgm.control | 2 +-
contrib/pg_trgm/sql/pg_strict_word_trgm.sql | 42 +
contrib/pg_trgm/trgm.h | 21 +-
contrib/pg_trgm/trgm_gin.c | 9 +-
contrib/pg_trgm/trgm_gist.c | 14 +-
contrib/pg_trgm/trgm_op.c | 248 +++++-
doc/src/sgml/pgtrgm.sgml | 88 +-
10 files changed, 1461 insertions(+), 61 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2018-03-21 13:19:23 pgsql: Handle heap rewrites even better in logical decoding
Previous Message Peter Eisentraut 2018-03-21 11:47:29 pgsql: Add configure tests for stdbool.h and sizeof bool