Re: Index question

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Index question
Дата
Msg-id 28006.1076650702@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Index question  ("David Witham" <davidw@unidial.com.au>)
Список pgsql-sql
"David Witham" <davidw@unidial.com.au> writes:
> I understand that selecting count(*) will involve a scan at some
> stage, but I was surprised that the index wasn't used in the >= case,
> but was used in the between case.

Given the estimated row counts in your examples, the planner's choices
are not surprising.  You have not given us any information on whether
those estimates are accurate.
        regards, tom lane


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

Предыдущее
От: "Kumar"
Дата:
Сообщение: Re: How to avoid nulls while writing string for dynamic query
Следующее
От: "Kumar"
Дата:
Сообщение: Re: How to avoid nulls while writing string for dynamic query