public inbox for [email protected]
help / color / mirror / Atom feedFrom: Daniel Verite <[email protected]>
To: Jeff Davis <[email protected]>
Cc: [email protected]
Subject: Re: Use CASEFOLD() internally rather than LOWER()
Date: Sat, 28 Feb 2026 14:27:12 +0100
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
Jeff Davis wrote:
> There are a number of internal callers of LOWER(), and conceptually
> those should all be using CASEFOLD(). Patches attached.
I tried 0001 with a non-UTF8 database and got quickly stuck:
create database latin9 encoding='LATIN9'
template=template0
locale='fr_FR.ISO-8859-15@euro';
\c latin9
select 'abc' ilike 'bc';
ERROR: Unicode case folding can only be performed if server encoding is UTF8
Presumably the internal calls to casefold should be conditionalized
on the encoding being UTF-8?
Best regards,
--
Daniel Vérité
https://postgresql.verite.pro/
view thread (4+ messages) latest in thread
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: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Use CASEFOLD() internally rather than LOWER()
In-Reply-To: <[email protected]>
* 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