BUG #19004: Incorrect lowercasing of word-final Greek capital Sigma (Σ)

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: 221250180(at)smail(dot)nju(dot)edu(dot)cn
Subject: BUG #19004: Incorrect lowercasing of word-final Greek capital Sigma (Σ)
Date: 2025-07-31 03:06:10
Message-ID: 19004-05eb4ef0b05f4aeb@postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 19004
Logged by: Bosheng Peng
Email address: 221250180(at)smail(dot)nju(dot)edu(dot)cn
PostgreSQL version: 17.5
Operating system: windows with docker
Description:

When applying UPPER() to the Greek word 'κόσμος', PostgreSQL returns
'ΚΌΣΜΟΣ'. However, applying LOWER() to that result returns 'κόσμοσ' instead
of the original 'κόσμος'.

According to wikipedia (https://en.wikipedia.org/wiki/Sigma) there are two
forms of lowercase for Greek capital Sigma (Σ):
- If Σ is at the end of a word, it should lowercase to ς
- If Σ is in the middle of a word, it should lowercase to σ

How to repeat:
```sql
SELECT LOWER(UPPER('κόσμος'));
-- Expected: 'κόσμος'
-- Actual: 'κόσμοσ'
```

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Dilip Kumar 2025-07-31 05:20:43 Re: BUG #18988: DROP SUBSCRIPTION locks not-yet-accessed database
Previous Message Peter Geoghegan 2025-07-31 03:00:46 Re: Postgres: Queries are too slow after upgrading to PG17 from PG15