Re: Optimize join selectivity estimation by not reading MCV stats for unique join attributes
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Optimize join selectivity estimation by not reading MCV stats for unique join attributes |
| Дата | |
| Msg-id | 2067066.1668731970@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Optimize join selectivity estimation by not reading MCV stats for unique join attributes (Tomas Vondra <tomas.vondra@enterprisedb.com>) |
| Ответы |
Re: Optimize join selectivity estimation by not reading MCV stats for unique join attributes
|
| Список | pgsql-hackers |
Tomas Vondra <tomas.vondra@enterprisedb.com> writes:
> Or perhaps what if we have a function that quickly determines if the
> attribute has MCV, without loading it? I'd bet the expensive part of
> get_attstatslot() is the deconstruct_array().
> We could have a function that only does the first small loop over slots,
> and returns true/false if we have a slot of the requested stakind.
Yeah, I like this idea.
> It might even check the isunique flag first, to make it more convenient.
That would tie it to this one use-case, which doesn't seem advisable.
I think we should forget the known-unique angle and just do quick
checks to see if both sides have MCVs.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера