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/[email protected] Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/8aa02b52db11039925191912eca71e3584b68860 Modified Files -------------- src/backend/executor/execTuples.c | 59 +++++++++++++++++++++++++++++++++----- src/backend/executor/nodeTidscan.c | 17 ++++------- src/include/executor/tuptable.h | 3 ++ 3 files changed, 60 insertions(+), 19 deletions(-)
