pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix planner's test for case-foldable characters in ILIKE with IC 4+ messages / 1 participants [nested] [flat]
* pgsql: Fix planner's test for case-foldable characters in ILIKE with IC @ 2019-08-12 17:16 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2019-08-12 17:16 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ master Details ------- https://git.postgresql.org/pg/commitdiff/03c811a483b243952874d8e2b3f0c2e3793bc952 Modified Files -------------- src/backend/utils/adt/like_support.c | 8 +++--- src/test/regress/expected/collate.icu.utf8.out | 35 +++++++++++++++++++++++++- src/test/regress/sql/collate.icu.utf8.sql | 12 ++++++++- 3 files changed, 50 insertions(+), 5 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Fix planner's test for case-foldable characters in ILIKE with IC @ 2019-08-12 17:16 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2019-08-12 17:16 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/c0c12ce391d89328640dd948b82466c308d85415 Modified Files -------------- src/backend/utils/adt/like_support.c | 8 +++--- src/test/regress/expected/collate.icu.utf8.out | 35 +++++++++++++++++++++++++- src/test/regress/sql/collate.icu.utf8.sql | 12 ++++++++- 3 files changed, 50 insertions(+), 5 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Fix planner's test for case-foldable characters in ILIKE with IC @ 2019-08-12 17:16 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2019-08-12 17:16 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/c914e74d2dee0ecf372c1d40f87499d94d591935 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(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Fix planner's test for case-foldable characters in ILIKE with IC @ 2019-08-12 17:16 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2019-08-12 17:16 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2019-08-12 17:16 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-08-12 17:16 pgsql: Fix planner's test for case-foldable characters in ILIKE with IC Tom Lane <tgl@sss.pgh.pa.us> 2019-08-12 17:16 pgsql: Fix planner's test for case-foldable characters in ILIKE with IC Tom Lane <tgl@sss.pgh.pa.us> 2019-08-12 17:16 pgsql: Fix planner's test for case-foldable characters in ILIKE with IC Tom Lane <tgl@sss.pgh.pa.us> 2019-08-12 17:16 pgsql: Fix planner's test for case-foldable characters in ILIKE with IC Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox