pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Geoghegan <pg@bowt.ie>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make _bt_insertonpg() more like _bt_split().
Date: Tue, 14 Apr 2020 02:27:50 +0000
Message-ID: <E1jOBIk-0003iU-Pw@gemulon.postgresql.org> (raw)

Make _bt_insertonpg() more like _bt_split().

It seems like a good idea for nbtree's retail insert code to be
absolutely consistent with nbtree's page split code for anything that
naturally requires equivalent handling.  Anything that concerns
inserting newitem (which is handled as part of the page split atomic
action when a page split is required) should work in exactly the same
way.  With that in mind, make _bt_insertonpg() handle 'cbuf' in a way
that matches _bt_split().

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/826ee1a019127d611bb0fd22ca878142bfb077ac

Modified Files
--------------
src/backend/access/nbtree/nbtinsert.c | 21 ++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)



Message-ID: <E1jOBIk-0003iU-Pw@gemulon.postgresql.org>
Permalink:  ../E1jOBIk-0003iU-Pw@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jOBIk-0003iU-Pw@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: pg@bowt.ie
  Subject: Re: pgsql: Make _bt_insertonpg() more like _bt_split().
  In-Reply-To: <E1jOBIk-0003iU-Pw@gemulon.postgresql.org>
  References: <E1jOBIk-0003iU-Pw@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox