Re: Query appears not to recognise index (enable_seqscan=off)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Query appears not to recognise index (enable_seqscan=off)
Дата
Msg-id 5728.1240937542@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Query appears not to recognise index (enable_seqscan=off)  (Neil Saunders <n.j.saunders@gmail.com>)
Ответы Re: Query appears not to recognise index (enable_seqscan=off)  (Neil Saunders <n.j.saunders@gmail.com>)
Список pgsql-novice
Neil Saunders <n.j.saunders@gmail.com> writes:
> And we're still running the sequential scan - My questions is why?

You're probably not in C locale.  Change locale or use a
text_pattern_ops index instead of a plain index on lower(name).
See
http://wiki.postgresql.org/wiki/FAQ#Why_are_my_queries_slow.3F_Why_don.27t_they_use_my_indexes.3F

            regards, tom lane

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

Предыдущее
От: Neil Saunders
Дата:
Сообщение: Query appears not to recognise index (enable_seqscan=off)
Следующее
От: Neil Saunders
Дата:
Сообщение: Re: Query appears not to recognise index (enable_seqscan=off)