From: | John Naylor <johncnaylorls(at)gmail(dot)com> |
---|---|
To: | 221250180(at)smail(dot)nju(dot)edu(dot)cn, pgsql-bugs(at)lists(dot)postgresql(dot)org |
Subject: | Re: BUG #19004: Incorrect lowercasing of word-final Greek capital Sigma (Σ) |
Date: | 2025-07-31 07:39:12 |
Message-ID: | CANWCAZavrH=uA+=zBVWyUOnbaxbGUmwTWy=n+bRZvN43p4YRQQ@mail.gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Thu, Jul 31, 2025 at 1:50 PM PG Bug reporting form
<noreply(at)postgresql(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Hayato Kuroda (Fujitsu) | 2025-07-31 09:03:58 | RE: BUG #18988: DROP SUBSCRIPTION locks not-yet-accessed database |
Previous Message | Michael Paquier | 2025-07-31 06:43:52 | Use-after-free in reorderbuffer.c for INSERT ON CONFLICT |