Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hx6NK-0000cx-HK for pgsql-bugs@arkaria.postgresql.org; Mon, 12 Aug 2019 09:12:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hx6NJ-0005f3-CW for pgsql-bugs@arkaria.postgresql.org; Mon, 12 Aug 2019 09:12:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hx6NI-0005cO-RC for pgsql-bugs@lists.postgresql.org; Mon, 12 Aug 2019 09:12:21 +0000 Received: from cyclops.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1hx6NE-0008LN-QA for pgsql-bugs@lists.postgresql.org; Mon, 12 Aug 2019 09:12:19 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 8972321C2284; Mon, 12 Aug 2019 12:12:14 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=x tagged_above=-99 required=4 WHITELISTED tests=[] autolearn=unavailable Received: from [192.168.27.237] (gw.postgrespro.ru [93.174.131.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id 5059F21C2252; Mon, 12 Aug 2019 12:12:13 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1565601133; bh=YgDeVyUM1kL/7zb4OD0LaoBNHHdgM0qcwwCL6ioGOx0=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=HHkrJHP1H29rb5LzDO2xaI9ol6nv2nU3jX/OWKAZeM1nMk2RhSBrP37Hszfs4FZ8X +GBBIjnwCUD062ZICrmYSD4bykCFMtjbe3FA/9a28HAQhRjKhGm0Fv+YCz1FAYoAuO IU8sPXFE5rQS9ouXdPwoAFftIdReGDcyC7yMrFN8= Subject: Re: BUG #15892: URGENT: Using an ICU collation in a primary key column breaks ILIKE query To: Tom Lane Cc: Daniel Verite , James Inform , Peter Eisentraut , pgsql-bugs@lists.postgresql.org References: <8be770db-3fd9-428a-968e-333fc67a50db@manitou-mail.org> <94c64652-81f6-63b9-b86c-bfc23d5d41d9@postgrespro.ru> <8498.1565559169@sss.pgh.pa.us> From: Arthur Zakirov Message-ID: <14da273b-b451-7144-2713-0e870babf685@postgrespro.ru> Date: Mon, 12 Aug 2019 12:12:13 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <8498.1565559169@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12.08.2019 00:32, Tom Lane wrote: > This topic seems to have slipped through the cracks, which is too bad > because we surely could have gotten it fixed in time for last week's > releases. Oh well. It is true. Also July commitfest had started by that time and it wasn't possible to add a new entry. > I think Daniel's patch leaves more on the table than it needs to, > and I don't like Arthur's patch because it's assuming more than it > should about whether it's okay to pass a "char" to u_isalpha(). > I propose that we do things as attached, instead. Yeah, u_isalpha() wasn't such good idea here. BTW Daniel already mentioned it above. With the patch regression tests pass for me and James test case works fine as expected. -- Arthur Zakirov Postgres Professional: http://www.postgrespro.com Russian Postgres Company