Refactor PinBufferForBlock() to remove checks about persistence.
authorNoah Misch <noah@leadboat.com>
Sat, 20 Jul 2024 11:22:12 +0000 (04:22 -0700)
committerNoah Misch <noah@leadboat.com>
Sat, 20 Jul 2024 11:22:12 +0000 (04:22 -0700)
commitaf07a827b9c579be64f144f88e03bff3bb85582c
tree879cdff42f7fcfb2a6b38ed1befe523b269ae230
parente00c45f6850f86c53b48478f60c15be905dc914d
Refactor PinBufferForBlock() to remove checks about persistence.

There are checks in PinBufferForBlock() function to set persistence of
the relation.  This function is called for each block in the relation.
Instead, set persistence of the relation before PinBufferForBlock().

Nazir Bilal Yavuz

Discussion: https://postgr.es/m/CAN55FZ0JKL6vk1xQp6rfOXiNFV1u1H0tJDPPGHWoiO3ea2Wc=A@mail.gmail.com
src/backend/storage/aio/read_stream.c
src/backend/storage/buffer/bufmgr.c
src/include/storage/bufmgr.h