Re: BUG #2050: Bad plan by using of LIKE

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #2050: Bad plan by using of LIKE
Дата
Msg-id 5891.1132324932@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #2050: Bad plan by using of LIKE  ("Johannes" <postgres@arltus.de>)
Список pgsql-bugs
"Johannes" <postgres@arltus.de> writes:
> EXPLAIN SELECT title FROM content WHERE title LIKE 'teane%';
> Seq Scan on content  (cost=0.00..75647.59 rows=1 width=68)
>    Filter: (title ~~ 'teane%'::text)

Apparently you're using a non-C locale.  LIKE can only use an index if
you're in the C locale or you make the index with a special index
operator class.  See
http://www.postgresql.org/docs/8.0/static/indexes-opclass.html

            regards, tom lane

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

Предыдущее
От: Sarunas Krisciukaitis
Дата:
Сообщение: Re: Double sequence increase on single insert with RULE on
Следующее
От: Jaime Casanova
Дата:
Сообщение: Re: BUG #2050: Bad plan by using of LIKE