Re: [HACKERS] A patch for FATAL 1:btree: BTP_CHAIN flag was expected - Mailing list pgsql-hackers

From Vadim Mikheev
Subject Re: [HACKERS] A patch for FATAL 1:btree: BTP_CHAIN flag was expected
Date
Msg-id 37240E3F.DE828E0E@krs.ru
Whole thread Raw
In response to Re: [HACKERS] A patch for FATAL 1:btree: BTP_CHAIN flag was expected  (Tatsuo Ishii <t-ishii@sra.co.jp>)
List pgsql-hackers
Tatsuo Ishii wrote:
> 
> Any objection to the pacthes below?  Seems they solve problems
> reported by a user in Japan (both on 6.4.2 and current).
> --
> Tatsuo Ishii
> 
> >From: "Hiroshi Inoue" <Inoue@tpf.co.jp>
> >To: "pgsql-hackers" <pgsql-hackers@postgreSQL.org>
> >Subject: [HACKERS] A patch for FATAL 1:btree: BTP_CHAIN flag was expected
> >Date: Tue, 13 Apr 1999 19:00:57 +0900
> >Message-ID: <000801be8594$869ad2a0$2801007e@cadzone.tpf.co.jp>
> 
> >Hello all,
> >
> >There exists the bug that causes elog()  FATAL 1:btree:
> >BTP_CHAIN flag was expected.
> >The following patch would solve the bug partially.
> >
> >It seems that the bug is caused by _bt_split() in nbtinsert.c.
> >BTP_CHAIN flags of buf/rbuf are always off immediately after
> >_bt_split(),so the pages may be in inconsistent state.
> >Though the flags are chagned correctly before _bt_relbuf(),
> >buf/rbuf are not _bt_wrt(norel)buf()'d after the change
> >(buf/rbuf are already _bt_wrtnorelbuf()'d in _bt_split() ).
> >

Let me check it...
I'll commit it myself...

Vadim


pgsql-hackers by date:

Previous
From: jwieck@debis.com (Jan Wieck)
Date:
Subject: Re: [HACKERS] create view as select distinct (fwd)
Next
From: Zeugswetter Andreas IZ5
Date:
Subject: AW: [HACKERS] Re: light dawns: serious bug in FE/BE protocol hand ling