Re: pgsql: Comments in IndexBuildHeapScan describe

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Comments in IndexBuildHeapScan describe
Date: 2006-03-27 20:46:02
Message-ID: 17147.1143492362@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Simon Riggs <simon(at)2ndquadrant(dot)com> writes:
> On Fri, 2006-03-24 at 19:02 -0400, Tom Lane wrote:
>> Comments in IndexBuildHeapScan describe the indexing of recently-dead
>> tuples as needed "to keep VACUUM from complaining", but actually there is
>> a more compelling reason to do it: failure to do so violates MVCC semantics.

> I notice the same error occurs in REL8_0_STABLE, REL7_4_STABLE and
> REL7_3_STABLE. This is a data loss bug, so why not back apply to those
> releases also?

I'm not sure it really qualifies as "data loss", since the answers would
be only transiently wrong. I chose not to back-patch further than 8.1
for a couple of reasons:

* It's a corner case, and given the lack of complaints, the risk of
breaking something in the back branches has to be factored into the
decision. I believe that the testing I did in HEAD validates the
patch well enough against 8.1, but the further back you go the less
well the correlation applies.

* The same problem exists with respect to CLUSTER, not to mention the
table-rewriting variants of ALTER TABLE. Any patch for CLUSTER will
be far more invasive and is unlikely to get back-patched at all.

regards, tom lane

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message User Ksrikanth 2006-03-27 22:57:39 bizgres - bizgres: File Modified :path.sh BUG BG-4 Fix : Use BIZHOME to
Previous Message Simon Riggs 2006-03-27 20:18:53 Re: pgsql: Comments in IndexBuildHeapScan describe