Re: An Idea for planner hints

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: An Idea for planner hints
Дата
Msg-id 28658.1155698057@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: An Idea for planner hints  ("Christopher Kings-Lynne" <chris.kingslynne@gmail.com>)
Список pgsql-hackers
"Christopher Kings-Lynne" <chris.kingslynne@gmail.com> writes:
> see.  Collecting the statistics thereafter isn't that hard, but there
> needs to be a way to not collect an exponential volume of statistics on
> all column combinations.

> You could collect them on all FK relationships - is that enough?

As somebody pointed out upthread, collecting these stats on FK
relationships is actually not very interesting: you already know
that the referenced side of the relationship is a unique column,
and so the selectivity stats of the referencing side are enough.
        regards, tom lane


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

Предыдущее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: BugTracker
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BugTracker (Was: Re: 8.2 features status)