Use PageIndexTupleOverwrite() within nbtsort.c - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Use PageIndexTupleOverwrite() within nbtsort.c
Date
Msg-id CAH2-Wz=Zk=B9+Vwm376WuO7YTjFc2SSskifQm4Nme3RRRPtOSQ@mail.gmail.com
Whole thread Raw
Responses Re: Use PageIndexTupleOverwrite() within nbtsort.c
List pgsql-hackers
Attached patch slightly simplifies nbtsort.c by making it use
PageIndexTupleOverwrite() to overwrite the last right non-pivot tuple
with the new high key (pivot tuple). PageIndexTupleOverwrite() is
designed so that code like this doesn't need to delete and re-insert
to replace an existing tuple.

This slightly simplifies the code, and also makes it marginally
faster. I'll add this to the 2019-09 CF.

-- 
Peter Geoghegan

Attachment

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS)
Next
From: Thomas Munro
Date:
Subject: Re: Adding SMGR discriminator to buffer tags