Re: BUG #9722: select ILIKE is not case insensitive in UTF8 cyrillic - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #9722: select ILIKE is not case insensitive in UTF8 cyrillic
Date
Msg-id 12952.1395757275@sss.pgh.pa.us
Whole thread Raw
In response to BUG #9722: select ILIKE is not case insensitive in UTF8 cyrillic  (mv@netsurf.bg)
Responses Re: BUG #9722: select ILIKE is not case insensitive in UTF8 cyrillic  (Martin Vassilev <mv@netsurf.bg>)
List pgsql-bugs
mv@netsurf.bg writes:
> test1=# select * from test1 where "TEXT" ilike 'Тест%';
>  ID |     TEXT
> ----+---------------
>   3 | Тестов запис
>   4 | Тестов запис1
> (2 rows)

> test1=# select * from test1 where "TEXT" ilike 'тест%';
>  ID | TEXT
> ----+------
> (0 rows)

> Тhese two queries should return the same result.
> I don't had that problem in version 8.4.X.

Perhaps you don't have the database locale/encoding set correctly?
(Look at the lc_collate and lc_ctype settings, and compare to what
you were using in 8.4.)

Another possibility is that you changed machines and the new OS
doesn't have the right Cyrillic locale definition.  PG mostly depends
on the OS' locale features to implement things like case folding.

            regards, tom lane

pgsql-bugs by date:

Previous
From: postgresql@thequod.de
Date:
Subject: BUG #9721: Fatal error on startup: no free slots in PMChildFlags array
Next
From: Tom Lane
Date:
Subject: Re: BUG #9721: Fatal error on startup: no free slots in PMChildFlags array