pgsql: Refactor PinBufferForBlock() to remove checks about persistence.

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Refactor PinBufferForBlock() to remove checks about persistence.
Date: 2024-07-20 11:24:19
Message-ID: E1sV8CJ-000OuX-CY@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2024-07-20 17:40:42 pgsql: Correctly check updatability of columns targeted by INSERT...DEF
Previous Message Nathan Bossart 2024-07-19 16:55:34 pgsql: Add overflow checks to money type.