Re: Use CASEFOLD() internally rather than LOWER() - Mailing list pgsql-hackers

From Daniel Verite
Subject Re: Use CASEFOLD() internally rather than LOWER()
Date
Msg-id f4aefa40-a25e-413f-a7be-66e4455c0337@manitou-mail.org
Whole thread Raw
In response to Use CASEFOLD() internally rather than LOWER()  (Jeff Davis <pgsql@j-davis.com>)
Responses Re: Use CASEFOLD() internally rather than LOWER()
List pgsql-hackers
    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/



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Skipping schema changes in publication
Next
From: vignesh C
Date:
Subject: Re: Skipping schema changes in publication