From: Peter Geoghegan <pg@bowt.ie>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use PageIndexTupleOverwrite() within nbtree.
Date: Tue, 13 Aug 2019 18:57:00 +0000
Message-ID: <E1hxbye-0007vS-Ow@gemulon.postgresql.org> (raw)
Use PageIndexTupleOverwrite() within nbtree.
Use the PageIndexTupleOverwrite() bufpage.c routine within nbtree
instead of deleting a tuple and re-inserting its replacement. This
makes the intent of affected code slightly clearer. It also makes
CREATE INDEX slightly faster, since there is no longer a need to shift
every leaf page's line pointer array back and forth during index builds.
Author: Peter Geoghegan, Anastasia Lubennikova
Reviewed-By: Anastasia Lubennikova
Discussion: https://postgr.es/m/CAH2-Wz=Zk=B9+Vwm376WuO7YTjFc2SSskifQm4Nme3RRRPtOSQ@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/af0ba49809b57203d87702b315b64f1fd53c728d
Modified Files
--------------
src/backend/access/nbtree/nbtpage.c | 9 ++++-----
src/backend/access/nbtree/nbtsort.c | 21 ++++++---------------
2 files changed, 10 insertions(+), 20 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: Use PageIndexTupleOverwrite() within nbtree.
In-Reply-To: <E1hxbye-0007vS-Ow@gemulon.postgresql.org>
References: <E1hxbye-0007vS-Ow@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