| От | Tom Lane |
|---|---|
| Тема | Re: Are statistics gathered on function indexes? |
| Дата | |
| Msg-id | 9389.1025296584@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Are statistics gathered on function indexes? (Ray Ontko <rayo@ontko.com>) |
| Ответы |
Re: Are statistics gathered on function indexes?
|
| Список | pgsql-admin |
Ray Ontko <rayo@ontko.com> writes:
> 1) here's the "bad" stats.
> 2) here's the "good" stats.
> Note that the information really is different.
Yeah. It seems that the critical difference is the null_frac; if I take
your "bad" values and change null_frac to 0 then I get
reasonable-looking answers, but with null_frac = 0.000333333 I indeed
get bad answers. I suspect null_frac is getting double-counted
somewhere, and depending on just how many nulls ANALYZE happens to find,
you might get pushed over the edge from a small selectivity to zero or
negative selectivity. Will dig further.
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера