Re: cant get an index scan with a LIKE

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: cant get an index scan with a LIKE
Дата
Msg-id 48EA6015.EE98.0025.0@wicourts.gov
обсуждение исходный текст
Ответ на cant get an index scan with a LIKE  ("Greg Caulton" <caultonpos@gmail.com>)
Ответы Re: cant get an index scan with a LIKE
Список pgsql-performance
>>> "Greg Caulton" <caultonpos@gmail.com> wrote:

> but I get a sequential scan when I do where term_index like
>
> select * from sct_descriptions where term_index like 'CHILLS AND
FEVER
> (FINDING)'

> Is there anything else I can do?  Settings below, this is PostgreSQL
8.3

> "lc_collate";"English_United States.1252"
> "lc_ctype";"English_United States.1252"
> "lc_messages";"English_United States"
> "lc_monetary";"English_United States"
> "lc_numeric";"English_United States"
> "lc_time";"English_United States"

This issue is discussed here:

http://www.postgresql.org/docs/8.2/interactive/locale.html

with a solution to your specific problem mentioned here:

http://www.postgresql.org/docs/8.2/interactive/indexes-opclass.html

You can create an index with the appropriate operator type to get LIKE
to work as you want.  I hope this helps.

-Kevin

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

Предыдущее
От: "Greg Caulton"
Дата:
Сообщение: cant get an index scan with a LIKE
Следующее
От: "Greg Caulton"
Дата:
Сообщение: Re: cant get an index scan with a LIKE