Re: Failure while inserting parent tuple to B-tree is not fun - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: Failure while inserting parent tuple to B-tree is not fun
Date
Msg-id CAM3SWZT9+wjWwoynEApbMOCiBHBGEk+9jypu=b9xTUZOUxyO+w@mail.gmail.com
Whole thread Raw
In response to Re: Failure while inserting parent tuple to B-tree is not fun  (Heikki Linnakangas <hlinnakangas@vmware.com>)
List pgsql-hackers
On Tue, Feb 4, 2014 at 11:56 PM, Heikki Linnakangas
<hlinnakangas@vmware.com> wrote:
>> Since, as I mentioned, _bt_finish_split() ultimately unlocks *and
>> unpins*, it may not be the same buffer as before, so even with the
>> refactoring there are race conditions.
>
> Care to elaborate? Or are you just referring to the missing "buf = " ?

Yes, that's all I meant.

> Attached is a new version of the patch, with those issues fixed.
> btree-incomplete-split-4.patch is a complete patch against the latest
> fix-btree-page-deletion patch, and moveright-assign-fix.patch is just the
> changes to _bt_moveright, if you want to review just the changes since the
> previous patch I posted.

Cool. I'll take a good look at it tomorrow morning PST.


-- 
Peter Geoghegan



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Failure while inserting parent tuple to B-tree is not fun
Next
From: Andres Freund
Date:
Subject: Re: Re: Misaligned BufferDescriptors causing major performance problems on AMD