Re: ILIKE vs indices

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ILIKE vs indices
Дата
Msg-id 22960.1356738089@sss.pgh.pa.us
обсуждение исходный текст
Ответ на ILIKE vs indices  (James Cloos <cloos@jhcloos.com>)
Ответы Re: ILIKE vs indices
Re: ILIKE vs indices
Список pgsql-hackers
James Cloos <cloos@jhcloos.com> writes:
> Is there any contraindication to recasting:
>   foo ILIKE 'bar'
> into:
>   LOWER(foo) LIKE LOWER('bar')

In some locales those are not equivalent, I believe, or at least
shouldn't be.  (What the current code actually does is a separate
question.)

> Perhaps the parser could read the former as the latter?

Not unless the equivalence can be shown to be exact, which I doubt.
In any case it's not obvious why LOWER rather than UPPER.
        regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: enhanced error fields
Следующее
От: Vlad Arkhipov
Дата:
Сообщение: Rewriter hook