Re: Best way to use indexes for partial match at

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Best way to use indexes for partial match at
Дата
Msg-id 18356.1131720025@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Best way to use indexes for partial match at  ("Andrus" <eetasoft@online.ee>)
Список pgsql-general
"Andrus" <eetasoft@online.ee> writes:
> Planner must use index
> CREATE TABLE foo ( bar CHAR(10) PRIMARY KEY );
> for queries like
> SELECT * FROM foo WHERE bar::CHAR(3)='ABC';
> Can you make this patch or add this to todo list  ?

This isn't going to happen for exactly the same reason that LIKE
optimization doesn't happen (in non-C locales): the sort order of
non-C indexes isn't compatible with testing a prefix of the string.

            regards, tom lane

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

Предыдущее
От: vishal saberwal
Дата:
Сообщение: Re: replicator
Следующее
От: Tom Lane
Дата:
Сообщение: Re: return next