Re: multi-column index

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: multi-column index
Дата
Msg-id 19588.1111029553@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: multi-column index  (David Brown <time@bigpond.net.au>)
Ответы Re: multi-column index  (Manfred Koizar <mkoi-pg@aon.at>)
Список pgsql-performance
David Brown <time@bigpond.net.au> writes:
> Actually, I'm surprised the planner came up with such a low cost for the
> single column index, unless ... perhaps correlation statistics aren't
> used when determining costs for multi-column indexes?

The correlation calculation for multi-column indexes is pretty whacked
out pre-8.0.  I don't think it's that great in 8.0 either --- we really
need to make ANALYZE calculate the correlation explicitly for each
index, probably, rather than trying to use per-column correlations.

            regards, tom lane

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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Speeding up select distinct
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Help to find out problem with joined tables