]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Make smgr access for a BufferManagerRelation safer in relcache inval
authorÁlvaro Herrera <alvherre@kurilemu.de>
Tue, 21 Oct 2025 07:51:55 +0000 (10:51 +0300)
committerÁlvaro Herrera <alvherre@kurilemu.de>
Tue, 21 Oct 2025 07:51:55 +0000 (10:51 +0300)
commitb7cc6474e930d4429b15657d6910e1e32066de5e
tree26d481b65447ad0695504c84382486fcbad186ab
parent9fd29d7ff476f3f1c1a22d6d6f730e813eddd960
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
src/backend/storage/buffer/bufmgr.c
src/backend/storage/buffer/localbuf.c
src/include/storage/bufmgr.h