Re: Status of 8.3 patches - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Status of 8.3 patches
Date
Msg-id 21481.1187670937@sss.pgh.pa.us
Whole thread Raw
In response to Re: Status of 8.3 patches  (Heikki Linnakangas <heikki@enterprisedb.com>)
Responses Re: Status of 8.3 patches  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
Re: Status of 8.3 patches  (Heikki Linnakangas <heikki@enterprisedb.com>)
List pgsql-hackers
Heikki Linnakangas <heikki@enterprisedb.com> writes:
> Bruce Momjian wrote:
>> o  Error correction for n_dead_tuples
>> 
>> This shows as waiting on another patch.  Again, I am thinking to
>> keep it for 8.4.

> It was waiting on the "vacuum oldestxmin" patch, which didn't make it to
> 8.3. I don't care for the patch myself, but it was submitted well before
> feature freeze and deserves a review. It looks good to me at first glance.

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.

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.

There may be something to be done here, but there's not any evidence
at hand that CVS HEAD actually suffers from a problem in tracking
n_dead_tuples, and even if it does I do not think that this particular
patch is a good fix.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: tsearch2 patch status report
Next
From: Tom Lane
Date:
Subject: Re: tsearch2 patch status report