Re: case insensitive collation of Greek's sigma

2021-12-02 Thread Gianni Ceccarelli
I realise this may not be applicable to the original problem, but non-deterministic collations seems to offer a solution:: dakkar@[local] dakkar=> create collation "en-US-ins-icu" ( provider=icu, locale='en-US-u-ks-level2', deterministic=false ); dakkar@[l

Re: case insensitive collation of Greek's sigma

2021-12-02 Thread Jakub Jedelsky
On Wed, Dec 1, 2021 at 8:49 PM Tom Lane wrote: > Peter Eisentraut writes: > > Running lower() like this is really the wrong thing to do. We should be > > doing "case folding" instead, which normalizes these differences for the > > purpose of case-insensitive comparisons. > > That just begs the

Re: case insensitive collation of Greek's sigma

2021-12-01 Thread Tom Lane
Peter Eisentraut writes: > Running lower() like this is really the wrong thing to do. We should be > doing "case folding" instead, which normalizes these differences for the > purpose of case-insensitive comparisons. That just begs the question: if tolower (or towlower) isn't the appropriate A

Re: case insensitive collation of Greek's sigma

2021-12-01 Thread Peter Eisentraut
On 26.11.21 08:37, Jakub Jedelsky wrote: postgres=# SELECT postgres-# 'ΣΣ' ILIKE 'σσ' COLLATE "en_US", postgres-# 'ΣΣ' ILIKE 'σς' COLLATE "en_US" postgres-# ;  ?column? | ?column? --+--  t        | f (1 row) postgres=# SELECT postgres-# 'ΣΣ' ILIKE 'σσ' COLLATE "en-US-x-icu", po

Re: case insensitive collation of Greek's sigma

2021-11-30 Thread Frank Limpert
Am 26.11.21 um 08:37 schrieb Jakub Jedelsky: Hello, during our tests of Postgres with ICU we found an issue with ILIKE of upper and lowercase sigma (Σ). The letter has two lowercase variants σ and ς (at the end of a word). I'm working with en_US and en-US-x-icu collations and results are a bi

Re: case insensitive collation of Greek's sigma

2021-11-26 Thread Tom Lane
Jakub Jedelsky writes: > during our tests of Postgres with ICU we found an issue with ILIKE of upper > and lowercase sigma (Σ). The letter has two lowercase variants σ and ς (at > the end of a word). I'm working with en_US and en-US-x-icu collations and > results are a bit unexpected - they are in

Re: case insensitive collation of Greek's sigma

2021-11-26 Thread Achilleas Mantzios
On 26/11/21 9:37 π.μ., Jakub Jedelsky wrote: Hello, Thank you for dealing with Greek! during our tests of Postgres with ICU we found an issue with ILIKE of upper and lowercase sigma (Σ). The letter has two lowercase variants σ and ς (at the end of a word). I'm working with en_US and en-US-x-i

case insensitive collation of Greek's sigma

2021-11-25 Thread Jakub Jedelsky
Hello, during our tests of Postgres with ICU we found an issue with ILIKE of upper and lowercase sigma (Σ). The letter has two lowercase variants σ and ς (at the end of a word). I'm working with en_US and en-US-x-icu collations and results are a bit unexpected - they are inverted: postgres=# SELE