pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix pg_iswcased() for some libc case mappings.
Date: Mon, 26 Oct 2026 22:12:19 +0000
Message-ID: <E1xLSvT-00000000tDJ-2dnY@gemulon.postgresql.org> (raw)

Fix pg_iswcased() for some libc case mappings.

Some C libraries, such as macOS libc, case-map characters that they do
not classify as upper or lower.  ILIKE index scans could then miss
rows, because those characters stayed in the fixed prefix.

Introduced in 630706ced0. 43a948b7b25 fixed similar issues, but missed
this one.

Author: shihao zhong <zhong950419@gmail.com>
Reviewed-by: Fujii Masao <masao.fujii@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/CAGRkXqS6pr-hG-g=K6RTdRw53SnMZWz3iXvh_wi8rqLSf972sA@mail.gmail.com
Backpatch-through: 19

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/75a5fef57d09d75cc082fc6ffe817fc0772ef89a

Modified Files
--------------
src/backend/utils/adt/pg_locale_libc.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)



view thread (2+ messages)

Message-ID: <E1xLSvT-00000000tDJ-2dnY@gemulon.postgresql.org>
Permalink:  ../E1xLSvT-00000000tDJ-2dnY@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xLSvT-00000000tDJ-2dnY@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: jdavis@postgresql.org
  Subject: Re: pgsql: Fix pg_iswcased() for some libc case mappings.
  In-Reply-To: <E1xLSvT-00000000tDJ-2dnY@gemulon.postgresql.org>
  References: <E1xLSvT-00000000tDJ-2dnY@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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