bufmgr: Add Pin/UnpinLocalBuffer()
authorAndres Freund <andres@anarazel.de>
Wed, 5 Apr 2023 17:42:17 +0000 (10:42 -0700)
committerAndres Freund <andres@anarazel.de>
Wed, 5 Apr 2023 17:42:17 +0000 (10:42 -0700)
commit794f25944790ed0462cde3d6dc0f1ad02fcd6bba
treed950d8985d144ff85031590fc022434c53b64534
parent819b69a81d307e2ad8e9752cf062ebb57813960d
bufmgr: Add Pin/UnpinLocalBuffer()

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

Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: David Rowley <dgrowleyml@gmail.com>
Discussion: https://postgr.es/m/20221029025420.eplyow6k7tgu6he3@awork3.anarazel.de
src/backend/storage/buffer/bufmgr.c
src/backend/storage/buffer/localbuf.c
src/include/storage/buf_internals.h