Add ExecStorePinnedBufferHeapTuple.

Andres Freund <andres@anarazel.de>

Commit: 8aa02b52db11039925191912eca71e3584b68860
Author: Andres Freund <andres@anarazel.de>
Date: 2019-02-27T01:59:01Z
Releases: 12.0
Add ExecStorePinnedBufferHeapTuple.

This allows to avoid an unnecessary pin/unpin cycle when storing a
tuple in an already pinned buffer into a slot, when the pin isn't
further needed at the call site.

Only a single caller for now (to ensure coverage), but upcoming
patches will increase use of the new function.

Author: Andres Freund
Discussion: https://postgr.es/m/20180703070645.wchpu5muyto5n647@alap3.anarazel.de

Files

Discussion