Re: ILIKE and indexes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ILIKE and indexes
Дата
Msg-id 20824.1174275293@sss.pgh.pa.us
обсуждение исходный текст
Ответ на ILIKE and indexes  ("Guillaume Smet" <guillaume.smet@gmail.com>)
Ответы Re: ILIKE and indexes  ("Guillaume Smet" <guillaume.smet@gmail.com>)
Список pgsql-hackers
"Guillaume Smet" <guillaume.smet@gmail.com> writes:
> The usual trick recommended in the doc is to use lower() and LIKE but
> it leads to bad row estimates (it's constant whatever the search
> pattern is)

Not if you have an index on lower(col) which one supposes you'd have
anyway for such an application.  Or are you running an ancient PG
release?
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Buildfarm feature request: some way to track/classify failures
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Bug in UTF8-Validation Code?