pgsql: Make _bt_insertonpg() more like _bt_split(). - Mailing list pgsql-committers

From Peter Geoghegan
Subject pgsql: Make _bt_insertonpg() more like _bt_split().
Date
Msg-id E1jOBIk-0003iU-Pw@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Noah Misch
Date:
Subject: pgsql: Add a wait_for_catchup() before immediate stop of a test master.
Next
From: Amit Kapila
Date:
Subject: pgsql: Comments and doc fixes for commit 40d964ec99.