pgsql: Refactor PinBufferForBlock() to remove checks about persistence. - Mailing list pgsql-committers

From Noah Misch
Subject pgsql: Refactor PinBufferForBlock() to remove checks about persistence.
Date
Msg-id E1sV8CJ-000OuX-CY@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/af07a827b9c579be64f144f88e03bff3bb85582c

Modified Files
--------------
src/backend/storage/aio/read_stream.c |  2 +-
src/backend/storage/buffer/bufmgr.c   | 27 +++++++++++++++------------
src/include/storage/bufmgr.h          |  2 +-
3 files changed, 17 insertions(+), 14 deletions(-)


pgsql-committers by date:

Previous
From: Nathan Bossart
Date:
Subject: pgsql: Add overflow checks to money type.
Next
From: Tom Lane
Date:
Subject: pgsql: Correctly check updatability of columns targeted by INSERT...DEF