agora inbox for pgsql-committers@postgresql.org
help / color / mirror / Atom feedFrom: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix pg_iswcased().
Date: Thu, 10 Sep 2026 03:44:07 +0000
Message-ID: <E1x4Vhm-00000004E3g-2gqq@gemulon.postgresql.org> (raw)
Fix pg_iswcased().
Commits 630706ced0 and 9c8de15969 lost some encoding-specific nuances:
in libc with EUC encodings, or in ICU with any non-UTF8 encoding, we
cannot easily classify characters, so we must assume they are
case-varying. Restore these behaviors.
Previously, ILIKE using an index scan could cause wrong results.
Reported-by: Noah Misch <noah@leadboat.com>
Discussion: https://postgr.es/m/20260826221526.89.noahmisch@microsoft.com
Backpatch-through: 19
Branch
------
REL_19_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/b264391a846e8b5917b00dde2399c38843c75bb8
Modified Files
--------------
src/backend/utils/adt/pg_locale.c | 5 +++++
src/backend/utils/adt/pg_locale_icu.c | 16 ++++++++++++++-
src/backend/utils/adt/pg_locale_libc.c | 36 ++++++++++++++++++++++++++++++----
3 files changed, 52 insertions(+), 5 deletions(-)
view thread (2+ messages)
Message-ID: <E1x4Vhm-00000004E3g-2gqq@gemulon.postgresql.org>
Permalink: ../E1x4Vhm-00000004E3g-2gqq@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1x4Vhm-00000004E3g-2gqq@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 using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: jdavis@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Fix pg_iswcased().
In-Reply-To: <E1x4Vhm-00000004E3g-2gqq@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox