Re: cross column correlation revisted

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: cross column correlation revisted
Дата
Msg-id 4820.1279117321@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: cross column correlation revisted  (PostgreSQL - Hans-Jürgen Schönig<postgres@cybertec.at>)
Ответы Re: cross column correlation revisted  (Andrew Dunstan <andrew@dunslane.net>)
Re: cross column correlation revisted  (PostgreSQL - Hans-Jürgen Schönig<postgres@cybertec.at>)
Re: cross column correlation revisted  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
PostgreSQL - Hans-Jürgen Schönig <postgres@cybertec.at> writes:
> i think that having stats on an index is a problem by itself for 2 reasons - for cross column correlation at least:

>     a.) joins cannot be covered by an index on two tables - we would fix "inside a table correlation problems" but
notjoins.
 

Your proposed command didn't cover the two-table case either, and anyway
what the heck do you mean by cross-correlation across tables?
Cross-correlation is about the correlation between values in the same
row.

>     b.) who says that there is actually an index in place?

If the combination of columns is actually interesting, there might well
be an index in place, or the DBA might be willing to create it.  For
that matter, have you considered the idea of examining the index
contents to derive the statistics?  Might work better than trying to get
numbers via ANALYZE.
        regards, tom lane


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

Предыдущее
От: PostgreSQL - Hans-Jürgen Schönig
Дата:
Сообщение: Re: cross column correlation revisted
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: cross column correlation revisted