Re: Stopgap solution for ILIKE in multibyte encodings - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Stopgap solution for ILIKE in multibyte encodings
Date
Msg-id 10386.1157395137@sss.pgh.pa.us
Whole thread Raw
In response to Re: Stopgap solution for ILIKE in multibyte encodings  ("Guillaume Smet" <guillaume.smet@gmail.com>)
List pgsql-hackers
"Guillaume Smet" <guillaume.smet@gmail.com> writes:
> On 9/4/06, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> I propose that for ILIKE in multibyte encodings, we just pass the strings
>> through lower() and then use the normal LIKE code.

> Perhaps it's a stupid question but what about the indexes? An index on
> lower(field) will be used by the new code or we wiil keep the current
> behaviour of ILIKE?

No, this is just an internal change in the function's implementation,
it won't have any effect like that.  If you want indexing you'd still
need to write out "lower(col) like whatever".
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCHES] Contrib module to examine client
Next
From: Stefan Kaltenbrunner
Date:
Subject: Re: [PATCHES] Contrib module to examine client