Re: BUG #19004: Incorrect lowercasing of word-final Greek capital Sigma (Σ) - Mailing list pgsql-bugs

From John Naylor
Subject Re: BUG #19004: Incorrect lowercasing of word-final Greek capital Sigma (Σ)
Date
Msg-id CANWCAZavrH=uA+=zBVWyUOnbaxbGUmwTWy=n+bRZvN43p4YRQQ@mail.gmail.com
Whole thread Raw
In response to BUG #19004: Incorrect lowercasing of word-final Greek capital Sigma (Σ)  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
On Thu, Jul 31, 2025 at 1:50 PM PG Bug reporting form
<noreply@postgresql.org> wrote:
> When applying UPPER() to the Greek word 'κόσμος', PostgreSQL returns
> 'ΚΌΣΜΟΣ'. However, applying LOWER() to that result returns 'κόσμοσ' instead
> of the original 'κόσμος'.

Hi,

For built-in collations, context-sensitive case mappings are a
forthcoming feature which will be available in PG18 later this year,
with the pg_unicode_fast collation:

CREATE TABLE example (
a text COLLATE PG_UNICODE_FAST,
b text COLLATE PG_C_UTF8
);

INSERT INTO example VALUES ('κόσμος', 'κόσμος');

SELECT LOWER(UPPER(a)), LOWER(UPPER(b)) FROM example;
 lower  | lower
--------+--------
 κόσμος | κόσμοσ
(1 row)

--
John Naylor
Amazon Web Services



pgsql-bugs by date:

Previous
From: Michael Paquier
Date:
Subject: Use-after-free in reorderbuffer.c for INSERT ON CONFLICT
Next
From: "Hayato Kuroda (Fujitsu)"
Date:
Subject: RE: BUG #18988: DROP SUBSCRIPTION locks not-yet-accessed database