X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 9456FD1C9C7 for ; Tue, 29 Jul 2003 23:19:48 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 07528-07 for ; Tue, 29 Jul 2003 20:18:50 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 60110D1C9C5 for ; Tue, 29 Jul 2003 20:19:46 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h6TNJdQ3005357; Tue, 29 Jul 2003 19:19:39 -0400 (EDT) To: Bruce Momjian Cc: PostgreSQL-development Subject: Re: parallel regression test failure In-reply-to: <200307252147.h6PLloW12464@candle.pha.pa.us> References: <200307252147.h6PLloW12464@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Fri, 25 Jul 2003 17:47:50 -0400" Date: Tue, 29 Jul 2003 19:19:39 -0400 Message-ID: <5356.1059520779@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/951 X-Sequence-Number: 41556 Bruce Momjian 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