Re: like/ilike improvements

From: "Guillaume Smet" <guillaume(dot)smet(at)gmail(dot)com>
To: "Andrew Dunstan" <andrew(at)dunslane(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: like/ilike improvements
Date: 2007-09-20 08:38:48
Message-ID: 1d4e0c10709200138q2e441160r447fbf1c3dd0b9bb@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On 9/20/07, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
> Can you retry both sets of tests but this time in C locale? The lower()
> code works differently in C locale, and it might be that we need to look
> at tweaking just one case.

Here we go with SQL_ASCII:

** 8.1 **

cityvox_c=# SELECT e.numeve FROM evenement e WHERE e.libgeseve LIKE
'%hocus pocus%';
numeve
--------
(0 rows)

Time: 117.485 ms

cityvox_c=# SELECT e.numeve FROM evenement e WHERE e.libgeseve ILIKE
'%hocus pocus%';
numeve
-----------
900024298
87578
(2 rows)

Time: 132.823 ms

** 8.2 **

cityvox_c=# SELECT e.numeve FROM evenement e WHERE e.libgeseve LIKE
'%hocus pocus%';
numeve
--------
(0 rows)

Time: 100.008 ms
cityvox_c=# SELECT e.numeve FROM evenement e WHERE e.libgeseve ILIKE
'%hocus pocus%';
numeve
-----------
900024298
87578
(2 rows)

Time: 113.579 ms

** 8.3 **

cityvox_c=# SELECT e.numeve FROM evenement e WHERE e.libgeseve LIKE
'%hocus pocus%';
numeve
--------
(0 rows)

Time: 112.462 ms
cityvox_c=# SELECT e.numeve FROM evenement e WHERE e.libgeseve ILIKE
'%hocus pocus%';
numeve
-----------
900024298
87578
(2 rows)

Time: 160.961 ms

--
Guillaume

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Georgi Chulkov 2007-09-20 11:03:22 Re: Raw device I/O for large objects
Previous Message Hannes Eder 2007-09-20 08:34:04 Re: Debugger

Browse pgsql-patches by date

  From Date Subject
Next Message Hannes Eder 2007-09-20 12:06:08 minor compiler warning in backend/utils/adt/tsrank.c
Previous Message Neil Conway 2007-09-20 06:52:10 Re: Implementation of aggregate functions