Re: How to make LIKE to use index in "abc%" query?

Поиск
Список
Период
Сортировка
От Dimitri Fontaine
Тема Re: How to make LIKE to use index in "abc%" query?
Дата
Msg-id 200710081852.19057.dfontaine@hi-media.com
обсуждение исходный текст
Ответ на How to make LIKE to use index in "abc%" query?  ("Dmitry Koterov" <dmitry@koterov.ru>)
Список pgsql-general
Le lundi 08 octobre 2007, Dmitry Koterov a écrit :
> explain analyze
> SELECT id FROM "table" WHERE name LIKE 'dt%';
>
> having a btree index on "name" column. But unfortunately it uses seqscan
> instead of index scan, it's too slow.

It seems to me you'd benefit from reading this page of the fine manual:
  http://www.postgresql.org/docs/current/interactive/indexes-opclass.html

Regards,
--
dim

Вложения

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

Предыдущее
От: "Dmitry Koterov"
Дата:
Сообщение: How to make LIKE to use index in "abc%" query?
Следующее
От: "Bill Bartlett"
Дата:
Сообщение: Re: Request: Anyone using bogus / "humorous" X-Message-Flag headers, could we please turn them off