Обсуждение: pgsql: bufmgr: Add Pin/UnpinLocalBuffer()

Поиск
Список
Период
Сортировка

pgsql: bufmgr: Add Pin/UnpinLocalBuffer()

От
Andres Freund
Дата:
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

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(-)