From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Fix planner's test for case-foldable characters in ILIKE with IC |
Date: | 2019-08-12 17:16:13 |
Message-ID: | E1hxDvZ-00048V-Vd@gemulon.postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Fix planner's test for case-foldable characters in ILIKE with ICU.
As coded, the ICU-collation path in pattern_char_isalpha() failed
to consider regular ASCII letters to be case-varying. This led to
like_fixed_prefix treating too much of an ILIKE pattern as being a
fixed prefix, so that indexscans derived from an ILIKE clause might
miss entries that they should find.
Per bug #15892 from James Inform. This is an oversight in the original
ICU patch (commit eccfef81e), so back-patch to v10 where that came in.
Discussion: https://postgr.es/m/15892-e5d2bea3e8a04a1b@postgresql.org
Branch
------
REL_10_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/886cf85b52cfdd84c0ff9b24193c7e0e0035b1c7
Modified Files
--------------
src/backend/utils/adt/selfuncs.c | 10 ++++----
src/test/regress/expected/collate.icu.utf8.out | 32 ++++++++++++++++++++++++++
src/test/regress/sql/collate.icu.utf8.sql | 9 ++++++++
3 files changed, 47 insertions(+), 4 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2019-08-12 20:19:47 | pgsql: Fix compiler warning |
Previous Message | Tom Lane | 2019-08-12 15:58:42 | pgsql: Remove EState.es_range_table_array. |