Re: Stopgap solution for ILIKE in multibyte encodings

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Stopgap solution for ILIKE in multibyte encodings
Дата
Msg-id 10386.1157395137@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Stopgap solution for ILIKE in multibyte encodings  ("Guillaume Smet" <guillaume.smet@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] Contrib module to examine client
Следующее
От: Stefan Kaltenbrunner
Дата:
Сообщение: Re: [PATCHES] Contrib module to examine client