Tatsuo Ishii wrote:
>
> >
> >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() ).
Exactly! If left/right pages would be flushed by other transaction
before setting BTP_CHAIN flag then this flag would be lost!
Where were my eyes! -:)
Thanks, Hiroshi!
Committed.
All versions >= 6.1 are affected by this bug...
I'll make patch for 6.4.2 in a few days if no one else...
Vadim