pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove "smgr_persistence == 0" dead code.
Date: Sat, 20 Jul 2024 11:24:19 +0000
Message-ID: <E1sV8CJ-000OuW-BM@gemulon.postgresql.org> (raw)

Remove "smgr_persistence == 0" dead code.

Reaching that code would have required multiple processes performing
relation extension during recovery, which does not happen.  That caller
has the persistence available, so pass it.  This was dead code as soon
as commit 210622c60e1a9db2e2730140b8106ab57d259d15 added it.

Discussion: https://postgr.es/m/CAN55FZ0JKL6vk1xQp6rfOXiNFV1u1H0tJDPPGHWoiO3ea2Wc=A@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/storage/buffer/bufmgr.c | 10 +---------
src/include/storage/bufmgr.h        | 10 +++-------
2 files changed, 4 insertions(+), 16 deletions(-)



Message-ID: <E1sV8CJ-000OuW-BM@gemulon.postgresql.org>
Permalink:  ../E1sV8CJ-000OuW-BM@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1sV8CJ-000OuW-BM@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: noah@leadboat.com, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Remove "smgr_persistence == 0" dead code.
  In-Reply-To: <E1sV8CJ-000OuW-BM@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox