From: | Greg Stark <gsstark(at)mit(dot)edu> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, Florian Helmberger <fh(at)25th-floor(dot)com>, pgsql-hackers(at)postgresql(dot)org, Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
Subject: | Re: [ADMIN] pg_class reltuples/relpages not updated by autovacuum/vacuum |
Date: | 2011-05-26 05:12:13 |
Message-ID: | BANLkTinX4jG+4n1vSqGzvdTr44j4cOtBcg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-hackers |
On Wed, May 25, 2011 at 10:05 PM, Greg Stark <gsstark(at)mit(dot)edu> wrote:
>> updated_density = old_density + (new_density - old_density) * reliability
>> new_reltuples = updated_density * new_relpages
>
> This amounts to assuming that the pages observed in the vacuum have
> the density observed and the pages that weren't seen have the density
> that were previously in the reltuples/relpages stats.
In case it's not clear, Tom's expression for updated_density is
equivalent by simple algebra to:
updated_density = (old_density * (1-reliability)) + (new_density * reliability)
--
greg
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2011-05-26 15:25:00 | Re: [ADMIN] pg_class reltuples/relpages not updated by autovacuum/vacuum |
Previous Message | Greg Stark | 2011-05-26 05:05:53 | Re: [ADMIN] pg_class reltuples/relpages not updated by autovacuum/vacuum |
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2011-05-26 08:06:49 | Re: SSI predicate locking on heap -- tuple or row? |
Previous Message | Greg Stark | 2011-05-26 05:05:53 | Re: [ADMIN] pg_class reltuples/relpages not updated by autovacuum/vacuum |