bufmgr: Add Pin/UnpinLocalBuffer()

So far these were open-coded in quite a few places, without a good reason.

Reviewed-by: Melanie Plageman <[email protected]>
Reviewed-by: David Rowley <[email protected]>
Discussion: 
https://postgr.es/m/[email protected]

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/794f25944790ed0462cde3d6dc0f1ad02fcd6bba

Modified Files
--------------
src/backend/storage/buffer/bufmgr.c   | 30 +++-------------
src/backend/storage/buffer/localbuf.c | 67 +++++++++++++++++++++++------------
src/include/storage/buf_internals.h   |  2 ++
3 files changed, 51 insertions(+), 48 deletions(-)

Reply via email to