Re: ilike not using index.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ilike not using index.
Дата
Msg-id 17179.1277150615@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: ilike not using index.  (Kenneth Marshall <ktm@rice.edu>)
Список pgsql-novice
Kenneth Marshall <ktm@rice.edu> writes:
> On Mon, Jun 21, 2010 at 03:36:07PM -0400, Tom Lane wrote:
>> You might consider creating an index on lower(full_name) and then
>> querying WHERE lower(full_name) LIKE whatever.

> Would citext support this?

No, unfortunately.  The index optimization for LIKE is hard-wired into
the planner, so it only supports built-in data types.  Someday it'd be
nice to have a way for add-on modules to insert that sort of
optimization.

            regards, tom lane

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

Предыдущее
От: Kenneth Marshall
Дата:
Сообщение: Re: ilike not using index.
Следующее
От: Laslo Forro
Дата:
Сообщение: Setting locale