Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bn6KA-0008IE-9S for pgsql-hackers@arkaria.postgresql.org; Thu, 22 Sep 2016 15:54:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bn6K9-00044X-Sl for pgsql-hackers@arkaria.postgresql.org; Thu, 22 Sep 2016 15:54:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bn6In-0002Yp-2a for pgsql-hackers@postgresql.org; Thu, 22 Sep 2016 15:52:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bn6Ij-0007l6-9v for pgsql-hackers@postgresql.org; Thu, 22 Sep 2016 15:52:44 +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 u8MFqdtx025690; Thu, 22 Sep 2016 11:52:39 -0400 From: Tom Lane To: Alvaro Herrera cc: Petr Jelinek , Peter Eisentraut , pgsql-hackers Subject: Re: ICU integration In-reply-to: <20160922153025.GA998480@alvherre.pgsql> References: <20160922153025.GA998480@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Thu, 22 Sep 2016 12:30:25 -0300" Date: Thu, 22 Sep 2016 11:52:39 -0400 Message-ID: <25689.1474559559@sss.pgh.pa.us> X-Pg-Spam-Score: -5.0 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Alvaro Herrera writes: > Petr Jelinek wrote: >>> I'm not sure how well it will work to replace all the bits of LIKE and >>> regular expressions with ICU API calls. One problem is that ICU likes >>> to do case folding as a whole string, not by character. I need to do >>> more research about that. >> Can't we use the regular expression api provided by ICU, or is that too >> incompatible? > That probably won't fly very well -- it would be rather absurd to have > different regex behavior when ICU is compiled compared to when it's > not. Perhaps down the road we could have an extension that provides > ICU-based regex operators, but most likely not in core. The regex stuff does not handle case-insensitivity by case-folding the data string, anyway. Rather, it does that by converting 'a' or 'A' in the pattern to the equivalent of '[aA]'. So performance for that step is not terribly critical. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers