Re: why is index not used?

Поиск
Список
Период
Сортировка
От Marcin Krol
Тема Re: why is index not used?
Дата
Msg-id 49075E5E.6040701@gmail.com
обсуждение исходный текст
Ответ на Re: why is index not used?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
Tom Lane wrote:
> The other point is that in non-C locales, a standard varchar index isn't
> usable for LIKE (the sort order is usually wrong).  You can re-initdb
> in C locale or create a varchar_pattern_ops index.

booktown=# create index first_name_idx_vpo on auth using btree
(first_name varchar_pattern_ops);

Yeehaw! Now it works. Thanks Tom!



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

Предыдущее
От: "JORGE MALDONADO"
Дата:
Сообщение: DATABASE INDEX DESIGN
Следующее
От: "JORGE MALDONADO"
Дата:
Сообщение: FOREIGN KEY AND INDEXEX