Refactor PinBufferForBlock() to remove checks about persistence.

Noah Misch <noah@leadboat.com>

Commit: af07a827b9c579be64f144f88e03bff3bb85582c
Author: Noah Misch <noah@leadboat.com>
Date: 2024-07-20T11:22:12Z
Releases: 18.0
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

Files

Discussion