Re: Incorrect expected rows by ANALYZE

Поиск
Список
Период
Сортировка
От pgsql@mohawksoft.com
Тема Re: Incorrect expected rows by ANALYZE
Дата
Msg-id 1210.68.163.104.172.1049728887.squirrel@mail.mohawksoft.com
обсуждение исходный текст
Ответ на Re: Incorrect expected rows by ANALYZE  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Incorrect expected rows by ANALYZE
Список pgsql-hackers
> Kenji Sugita <sugita@srapc1327.sra.co.jp> writes:
>> Why do dead tuples cause incorrect expected rows by ANALYZE?
>
> Because it extrapolates the density of live rows in the whole table
> from their density in the first few pages.
>
> There has been some previous discussion of how to improve this, but no
> really workable ideas AFAIR.  Ultimately, unless you want to abandon
> the notion that ANALYZE only samples the table and doesn't read the
> whole thing, there will be situations where it gets fooled.  But
> possibly we can make those situations less likely to correspond to
> common real-world cases.

Couldn't there be an ANALYZE FULL option?



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

Предыдущее
От: "Dave Page"
Дата:
Сообщение: pg_clog woes with 7.3.2
Следующее
От: "scott.marlowe"
Дата:
Сообщение: Re: Incorrect expected rows by ANALYZE