| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера