]> granicus.if.org Git - postgresql/commit
Add ExecStorePinnedBufferHeapTuple.
authorAndres Freund <andres@anarazel.de>
Wed, 27 Feb 2019 01:59:01 +0000 (17:59 -0800)
committerAndres Freund <andres@anarazel.de>
Wed, 27 Feb 2019 01:59:01 +0000 (17:59 -0800)
commit8aa02b52db11039925191912eca71e3584b68860
tree905a1ff148f79b24137f894b35135e24c309c0dc
parentf4b6341d5fcb627d51b3fc89527aa5eaa659fb2e
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
src/backend/executor/execTuples.c
src/backend/executor/nodeTidscan.c
src/include/executor/tuptable.h