From: Peter Geoghegan <pg@bowt.ie>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove block number field from nbtree stack.
Date: Wed, 14 Aug 2019 18:33:19 +0000
Message-ID: <E1hxy5H-0001n5-Cw@gemulon.postgresql.org> (raw)
Remove block number field from nbtree stack.
The initial value of the nbtree stack downlink block number field
recorded during an initial descent of the tree wasn't actually used.
Both _bt_getstackbuf() callers overwrote the value with their own value.
Remove the block number field from the stack struct, and add a child
block number argument to _bt_getstackbuf() in its place. This makes the
overall design of _bt_getstackbuf() clearer.
Author: Peter Geoghegan
Reviewed-By: Anastasia Lubennikova
Discussion: https://postgr.es/m/CAH2-Wzmx+UbXt2YNOUCZ-a04VdXU=S=OHuAuD7Z8uQq-PXTYUg@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/9c02cf56614366769682bb8b3f4e9eecf8f237c4
Modified Files
--------------
src/backend/access/nbtree/README | 8 +++++-
src/backend/access/nbtree/nbtinsert.c | 46 +++++++++++++++++++++++------------
src/backend/access/nbtree/nbtpage.c | 3 +--
src/backend/access/nbtree/nbtsearch.c | 19 +++++----------
src/include/access/nbtree.h | 16 +++++-------
5 files changed, 50 insertions(+), 42 deletions(-)
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: Remove block number field from nbtree stack.
In-Reply-To: <E1hxy5H-0001n5-Cw@gemulon.postgresql.org>
References: <E1hxy5H-0001n5-Cw@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