pgsql: Fix bugs in contrib/pg_trgm's LIKE pattern analysis code. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix bugs in contrib/pg_trgm's LIKE pattern analysis code.
Date
Msg-id E1T3Vjp-0001Iz-Fv@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix bugs in contrib/pg_trgm's LIKE pattern analysis code.

Extraction of trigrams did not process LIKE escape sequences properly,
leading to possible misidentification of trigrams near escapes, resulting
in incorrect index search results.

Fujii Masao

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/e0badf67e9cd409ea35f2c2d5e3ca36ffecb47d7

Modified Files
--------------
contrib/pg_trgm/expected/pg_trgm.out |   12 +++++++++
contrib/pg_trgm/sql/pg_trgm.sql      |    2 +
contrib/pg_trgm/trgm_op.c            |   44 +++++++++++++++++++--------------
3 files changed, 39 insertions(+), 19 deletions(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Don't get confused if a WAL partial record header has xl_tot_len
Next
From: Tom Lane
Date:
Subject: pgsql: Fix bugs in contrib/pg_trgm's LIKE pattern analysis code.