pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: parallel regression test failure
Date: Tue, 29 Jul 2003 19:19:39 -0400
Message-ID: <5356.1059520779@sss.pgh.pa.us> (raw)
In-Reply-To: <200307252147.h6PLloW12464@candle.pha.pa.us>
References: <200307252147.h6PLloW12464@candle.pha.pa.us>

Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I am seeing the following parallel regression test failures.  Any idea
> on the cause?

For the record, I believe this is explained by the bug I just fixed in
_bt_search().

The bug occurs only when one backend is trying to search a btree index
at the same time another backend is doing the first page split in that
index (that is, when the aboriginal root-and-leaf page gets split into
two leaf pages).  In the present form of the parallel regression tests,
pg_class_oid_index and pg_type_oid_index suffer that split during the
third group of parallel tests, which is why the failures were bunched
in constraints/triggers/vacuum.

My guess is that the reason different vintages of CVS show or don't show
the problem is that modifications of the test scripts have caused more
or fewer pg_class and pg_type entries to get created, possibly moving
the critical split point before or after that set of parallel tests.
If the split occurs during a sequential test step then we'd never see
a failure.  This may explain why we've not become aware of the bug till
now, even though it's certainly been there a long time.

We need to think about whether this bug is serious enough to justify a
quick 7.3.5 release.  I'm leaning to the idea that it is not, because
if it were, we'd have heard about it from the field before now.  In
pre-7.4 code there is only one instant in the lifespan of an index where
the bug could occur, and then only if the index is created empty.

			regards, tom lane



view thread (27+ messages)  latest in thread

Message-ID: <5356.1059520779@sss.pgh.pa.us>
Permalink:  ../5356.1059520779@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5356.1059520779@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgman@candle.pha.pa.us, pgsql-hackers@postgresql.org
  Subject: Re: parallel regression test failure
  In-Reply-To: <5356.1059520779@sss.pgh.pa.us>
  References: <200307252147.h6PLloW12464@candle.pha.pa.us> <5356.1059520779@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox