Re: Bogus ANALYZE results for an otherwise-unique column with many nulls

Поиск
Список
Период
Сортировка
От Andrew Gierth
Тема Re: Bogus ANALYZE results for an otherwise-unique column with many nulls
Дата
Msg-id 871t23fwgb.fsf@news-spur.riddles.org.uk
обсуждение исходный текст
Ответ на Bogus ANALYZE results for an otherwise-unique column with many nulls  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Bogus ANALYZE results for an otherwise-unique column with many nulls  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Список pgsql-hackers
>>>>> "Tom" == Tom Lane <tgl@sss.pgh.pa.us> writes:
Tom> What I did in the patch is to scale the formerly fixed "-1.0"Tom> stadistinct estimate to discount the fraction of
nullswe found.
 

This seems quite dubious to me. stadistinct representing only the
non-null values seems to me to be substantially more useful and less
confusing; it should be up to consumers to take stanullfrac into account
(in general they already do) since in many cases we explicitly do _not_
want to count nulls.

-- 
Andrew (irc:RhodiumToad)



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

Предыдущее
От: Etsuro Fujita
Дата:
Сообщение: Re: Oddity in EXPLAIN for foreign/custom join pushdown plans
Следующее
От: Thom Brown
Дата:
Сообщение: Re: Refactoring of heapam code.