From: | Heikki Linnakangas <heikki(at)enterprisedb(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Neil Conway <neilc(at)samurai(dot)com>, ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp> |
Subject: | Re: Status of 8.3 patches |
Date: | 2007-08-21 07:48:46 |
Message-ID: | 46CA98DE.4080500@enterprisedb.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Tom Lane wrote:
> This patch was originally submitted before we realized that pg_stats
> failed to distinguish the effects of committed vs rolled-back
> transactions (which was fixed about three months ago); and we also
> recently fixed several other bugs such as losing stats data for shared
> catalogs. So there's a significant probability that the errors it was
> trying to compensate for are already fixed.
Quite possible. I don't recall a real world example or a test case
preceding the patch. I guess the problem scenario would be a table with
a lot of update/delete activity, and very unaggressive cost_delay.
> Also, I'm still quite unhappy that the patch converts the tracking of
> n_dead_tuples into a dead-reckoning system in which incremental changes
> are continually applied without any feedback that'd prevent the value
> from diverging arbitrarily far from reality. Murphy's law says that
> the value *will* diverge, if you don't have any negative feedback
> in the loop to force it to track reality.
I believe the latest version doesn't have that problem. At the beginning
of vacuum, n_dead_tuples is saved, and at the end of vacuum
n_dead_tuples is decremented by the value it had at the beginning. At
the end n_dead_tuples will be equal to the number of new dead tuples
generated during the vacuum, no matter how out of whack it was in the
beginning.
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
From | Date | Subject | |
---|---|---|---|
Next Message | Dhanaraj M | 2007-08-21 11:33:44 | Re: [HACKERS] PAM authentication fails for local UNIX users |
Previous Message | Greg Smith | 2007-08-21 07:36:57 | Re: 8.3 beta testing suggestions welcome |