Re: Clustered indexes - When to use them?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Clustered indexes - When to use them?
Дата
Msg-id 12033.1130974184@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Clustered indexes - When to use them?  ("Jim C. Nasby" <jnasby@pervasive.com>)
Ответы Problem with array in plpgsql function .. please help :-)  (David Gagnon <dgagnon@siunik.com>)
Список pgsql-general
"Jim C. Nasby" <jnasby@pervasive.com> writes:
> That's because unfortunately PostgreSQL only keeps statistics on
> individual columns. There's no stats kept on multi-column indexes; the
> best the planner can do is use the stats for the first column.

That's not what we do at all: we do look at the stats for each column
and combine them.

The deficiency is that we don't have any stats about cross-column
correlations, and therefore must assume that the columns are independent
(in the statistical sense).  This is a poor assumption in the real world.
But it's a lot subtler than "we only consider the first column".

            regards, tom lane

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

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Replicating databases
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Lock Modes (Documentation)