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: nbtree: Rename nbtinsert.c variables for consistency.
Date: Tue, 17 Nov 2020 17:02:19 +0000
Message-ID: <E1kf4N1-0004su-TO@gemulon.postgresql.org> (raw)

nbtree: Rename nbtinsert.c variables for consistency.

Stop naming special area/opaque pointer variables 'lpageop' in contexts
where it doesn't make sense.  This is a holdover from a time when logic
that performs tasks that are now spread across _bt_insertonpg(),
_bt_findinsertloc(), and _bt_split() was more centralized.  'lpageop'
denotes "left page", which doesn't make sense outside of contexts in
which there isn't also a right page.

Also acquire page flag variables up front within _bt_insertonpg().  This
makes it closer to _bt_split() following refactoring commit bc3087b626d.
This allows the page split and retail insert paths to both make use of
the same variables.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a034f8b60c6e9afd75f42dc420a76cb9d3875fcb

Modified Files
--------------
src/backend/access/nbtree/nbtinsert.c | 121 +++++++++++++++++-----------------
1 file changed, 62 insertions(+), 59 deletions(-)



Message-ID: <E1kf4N1-0004su-TO@gemulon.postgresql.org>
Permalink:  ../E1kf4N1-0004su-TO@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kf4N1-0004su-TO@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: nbtree: Rename nbtinsert.c variables for consistency.
  In-Reply-To: <E1kf4N1-0004su-TO@gemulon.postgresql.org>
  References: <E1kf4N1-0004su-TO@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