From: | "Pavan Deolasee" <pavan(dot)deolasee(at)gmail(dot)com> |
---|---|
To: | "Gregory Stark" <stark(at)enterprisedb(dot)com> |
Cc: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Simon Riggs" <simon(at)2ndquadrant(dot)com>, "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com>, "Pavan Deolasee" <pavan(at)enterprisedb(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: HOT patch, missing things |
Date: | 2007-08-22 06:59:02 |
Message-ID: | 2e78013d0708212359jc275a16w6c6c4fdc1a0a4369@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 8/14/07, Gregory Stark <stark(at)enterprisedb(dot)com> wrote:
>
> "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
>
> >
> > Doesn't this design completely fail to take index bloat into account?
> > Repairing heap fragmentation does not reduce the need for VACUUM to work
> > on the indexes.
>
> Index bloat is a bit of an open issue already. Because page splits already
> prune any LP_DELETEd pointers any busy index keys will be pruned already.
However any index keys which have not been the subject of an index lookup --
> and that includes keys which are only accessed by bitmap-index-scans --
> won't
> be pruned.
>
> So we don't really know how much bloat is currently in an index. Perhaps
> we
> need a new statistic which gets updated whenever a page split prunes
> LP_DELETEd pointers (or perhaps when LP_DELETE is set?).
I agree here. As a first step, may be can address the heap space usage
statistics and then take up index stats separately. Index bloat would carry
a different weight in triggering autovacuum.
I shall code up a patch which tracks the dead space in the heap and
trigger autovac based on that.
Thanks,
Pavan
--
Pavan Deolasee
EnterpriseDB http://www.enterprisedb.com
From | Date | Subject | |
---|---|---|---|
Next Message | Dimitri Fontaine | 2007-08-22 07:34:27 | Re: A couple of tsearch loose ends |
Previous Message | Tom Lane | 2007-08-22 06:13:05 | Re: tsearch2 patch status report |