From: Tom Lane <tgl@sss.pgh.pa.us>
To: mv@netsurf.bg
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #9722: select ILIKE is not case insensitive in UTF8 cyrillic
Date: Tue, 25 Mar 2014 10:21:15 -0400
Message-ID: <12952.1395757275@sss.pgh.pa.us> (raw)
In-Reply-To: <20140325130316.13982.32775@wrigleys.postgresql.org>
References: <20140325130316.13982.32775@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, mv@netsurf.bg
Subject: Re: BUG #9722: select ILIKE is not case insensitive in UTF8 cyrillic
In-Reply-To: <12952.1395757275@sss.pgh.pa.us>
References: <20140325130316.13982.32775@wrigleys.postgresql.org> <12952.1395757275@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox