pgsql: Make _bt_insertonpg() more like _bt_split().

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Make _bt_insertonpg() more like _bt_split().
Date: 2020-04-14 02:27:50
Message-ID: E1jOBIk-0003iU-Pw@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Kapila 2020-04-14 02:50:22 pgsql: Comments and doc fixes for commit 40d964ec99.
Previous Message Noah Misch 2020-04-14 01:48:45 pgsql: Add a wait_for_catchup() before immediate stop of a test master.