Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WSSED-0001mL-6i for pgsql-bugs@arkaria.postgresql.org; Tue, 25 Mar 2014 14:21:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WSSEC-0001hD-En for pgsql-bugs@arkaria.postgresql.org; Tue, 25 Mar 2014 14:21:20 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WSSEB-0001h7-Lf for pgsql-bugs@postgresql.org; Tue, 25 Mar 2014 14:21:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WSSE9-0007WW-JK for pgsql-bugs@postgresql.org; Tue, 25 Mar 2014 14:21:18 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s2PELFnO012953; Tue, 25 Mar 2014 10:21:15 -0400 From: Tom Lane To: mv@netsurf.bg cc: pgsql-bugs@postgresql.org Subject: Re: BUG #9722: select ILIKE is not case insensitive in UTF8 cyrillic In-reply-to: <20140325130316.13982.32775@wrigleys.postgresql.org> References: <20140325130316.13982.32775@wrigleys.postgresql.org> Comments: In-reply-to mv@netsurf.bg message dated "Tue, 25 Mar 2014 13:03:16 -0000" Date: Tue, 25 Mar 2014 10:21:15 -0400 Message-ID: <12952.1395757275@sss.pgh.pa.us> X-Pg-Spam-Score: -2.3 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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