Re: query plan and the use of indexes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: query plan and the use of indexes
Дата
Msg-id 9746.1181572505@sss.pgh.pa.us
обсуждение исходный текст
Ответ на query plan and the use of indexes  ("David Monarchi" <david.e.monarchi@gmail.com>)
Список pgsql-novice
"David Monarchi" <david.e.monarchi@gmail.com> writes:
> I don't understand why the use of a single inequality ( > or < ) causes the
> planner to filter on the condition, but the use of an interval (> and <)
> causes the planner to use the index.

There's something awfully wacko about the rowcount estimates you're
getting.  What PG version are you using?  I think you may be getting
bit by the recently-fixed bugs in choose_bitmap_and() ...

            regards, tom lane

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

Предыдущее
От: "David Monarchi"
Дата:
Сообщение: query plan and the use of indexes
Следующее
От: "Gary Townsend"
Дата:
Сообщение: Re: PGPLSql Select Into problem.