pgsql: bufmgr: Add Pin/UnpinLocalBuffer()
pgsql: bufmgr: Add Pin/UnpinLocalBuffer()
От:
Andres Freund <andres@anarazel.de>
Дата:
bufmgr: Add Pin/UnpinLocalBuffer() So far these were open-coded in quite a few places, without a good reason. Reviewed-by: Melanie Plageman Reviewed-by: David Rowley Discussion: https://postgr.es/m/20221029025420.eplyow6k7tgu6he3@awork3.anarazel.de 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(-)