From: Álvaro Herrera <alvherre@kurilemu.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make smgr access for a BufferManagerRelation safer in relcache i
Date: Tue, 21 Oct 2025 07:53:14 +0000
Message-ID: <E1vB7BC-002kZg-2s@gemulon.postgresql.org> (raw)
Make smgr access for a BufferManagerRelation safer in relcache inval
Currently there's no bug, because we have no code path where we
invalidate relcache entries where it'd cause a problem. But it's more
robust to do it this way in case we introduce such a path later, as some
Postgres forks reportedly already have.
Author: Daniil Davydov <3danissimo@gmail.com>
Reviewed-by: Stepan Neretin <slpmcf@gmail.com>
Discussion: https://postgr.es/m/CAJDiXgj3FNzAhV+jjPqxMs3jz=OgPohsoXFj_fh-L+nS+13CKQ@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/b7cc6474e930d4429b15657d6910e1e32066de5e
Modified Files
--------------
src/backend/storage/buffer/bufmgr.c | 59 ++++++++++++++++-------------------
src/backend/storage/buffer/localbuf.c | 10 +++---
src/include/storage/bufmgr.h | 15 ++++++---
3 files changed, 44 insertions(+), 40 deletions(-)
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: alvherre@kurilemu.de, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Make smgr access for a BufferManagerRelation safer in relcache i
In-Reply-To: <E1vB7BC-002kZg-2s@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