| From: | Noah Misch <noah(at)leadboat(dot)com> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Remove "smgr_persistence == 0" dead code. |
| Date: | 2024-07-20 11:24:19 |
| Message-ID: | E1sV8CJ-000OuW-BM@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(-)
| 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. |