Re: Index is not used

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Index is not used
Дата
Msg-id 14302.1071895143@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Index is not used  ("A.Bhuvaneswaran" <bhuvan@symonds.net>)
Ответы Re: Index is not used  ("A.Bhuvaneswaran" <bhuvan@symonds.net>)
Список pgsql-admin
"A.Bhuvaneswaran" <bhuvan@symonds.net> writes:
> I have a table and an index on it. The index is used when i use '=3D'
> operator for the indexed field in the where condition. But the index is
> not used when i use '>=3D' operator for the same field.

Unsurprising.  An inequality condition may require fetching many rows
(the planner is estimating 336289 rows here...) and so an indexscan is
not necessarily quicker.  Have you compared actual runtimes with
enable_seqscan on and off?

            regards, tom lane

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

Предыдущее
От: "A.Bhuvaneswaran"
Дата:
Сообщение: Index is not used
Следующее
От: Oliver Elphick
Дата:
Сообщение: {Virus?} Re: Debian Install 7.4