Re: visibility map and reltuples

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Greg Stark <greg(dot)stark(at)enterprisedb(dot)com>
Cc: "Ned T(dot) Crigler" <crigler(at)users(dot)sourceforge(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: visibility map and reltuples
Date: 2008-12-15 13:24:10
Message-ID: 49465A7A.2070103@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Lor 2008-12-15 13:35:49 DTrace probes patch
Previous Message Greg Stark 2008-12-15 13:13:45 Re: visibility map and reltuples