Further simplify nbtree high key truncation.

Peter Geoghegan <pg@bowt.ie>

Commit: f01157e2ac8ac4dff8ba159c36edf2fdb7d6704e
Author: Peter Geoghegan <pg@bowt.ie>
Date: 2020-03-31T00:34:12Z
Releases: 13.0
Further simplify nbtree high key truncation.

Commit 7c2dbc69 reorganized _bt_truncate() in a way that enables a
further simplification that I (pgeoghegan) missed:  Since we mark the
tuple that is returned to the caller as a pivot tuple before the point
where its heap TID is set as of 7c2dbc69, it is possible to use the high
level BTreeTupleGetHeapTID() inline function to get an item pointer.  Do
it that way now.  This approach is clearer and more maintainable.

Files

PathChange+/−
src/backend/access/nbtree/nbtutils.c modified +1 −2