Re: Column correlation drifts, index ignored again

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Column correlation drifts, index ignored again
Дата
Msg-id 19441.1077493226@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Column correlation drifts, index ignored again  (John Siracusa <siracusa@mindspring.com>)
Ответы Re: Column correlation drifts, index ignored again  (John Siracusa <siracusa@mindspring.com>)
Список pgsql-performance
John Siracusa <siracusa@mindspring.com> writes:
> I think the key is to get the planner to correctly ballpark the number of
> rows in the date range.

I thought it was.  What you showed was

-> Index Scan using mytable_date_idx on mytable (cost=0.00..3071.70 rows=52155 width=23) (actual time=2.610..1688.111
rows=49679loops=1) 

which seemed plenty close enough to me.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: General performance questions about postgres on Apple
Следующее
От: John Siracusa
Дата:
Сообщение: Re: Column correlation drifts, index ignored again