Re: visibility map and reltuples

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: visibility map and reltuples
Дата
Msg-id 49465A7A.2070103@enterprisedb.com
обсуждение исходный текст
Ответ на Re: visibility map and reltuples  (Greg Stark <greg.stark@enterprisedb.com>)
Ответы Re: visibility map and reltuples  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Greg Stark wrote:
> I wonder if we should switch to keeping reltuplesperpage instead. Then a 
> partial vacuum could update it by taking the average number of tuples 
> per page forbthe pages it saw. Perhaps adjusting it to the weights 
> average between the old value and the new value based on how many pages 
> were seen.

The pages scanned by a partial vacuum isn't a random sample of pages in 
the table. That would bias the reltuplesperpage value towards those 
pages that are updated more.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: visibility map and reltuples
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Sync Rep: First Thoughts on Code