Re: B-tree descend for insertion locking - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: B-tree descend for insertion locking
Date
Msg-id CAM3SWZSfGmDWA-=HPR=peop3B-damQ1N2TZtOO+UxujH2VYLSA@mail.gmail.com
Whole thread Raw
In response to B-tree descend for insertion locking  (Heikki Linnakangas <hlinnakangas@vmware.com>)
List pgsql-hackers
On Tue, Mar 18, 2014 at 4:12 AM, Heikki Linnakangas
<hlinnakangas@vmware.com> wrote:
> When inserting into a B-tree index, all the pages are read-locked when
> descending the tree. When we reach the leaf page, the read-lock is exchanged
> for a write-lock.
>
> There's nothing wrong with that, but why don't we just directly grab a
> write-lock on the leaf page?


Whatever happened to this idea?

-- 
Peter Geoghegan



pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: PL/pgSQL 1.2
Next
From: Bruce Momjian
Date:
Subject: Re: Display of timestamp in pg_dump custom format