]> git.ipfire.org Git - thirdparty/postgresql.git/commit
bufmgr: Change BufferDesc.state to be a 64-bit atomic
authorAndres Freund <andres@anarazel.de>
Thu, 15 Jan 2026 17:53:50 +0000 (12:53 -0500)
committerAndres Freund <andres@anarazel.de>
Thu, 15 Jan 2026 19:20:41 +0000 (14:20 -0500)
commitdac328c8a682d38b509b8fd966b280c5f47ea287
tree5cce2dba6a443c7f013a8edd9d2785e682eb38d8
parent282b1cde9dedf456ecf02eb27caf086023a7bb71
bufmgr: Change BufferDesc.state to be a 64-bit atomic

This is motivated by wanting to merge buffer content locks into
BufferDesc.state in a future commit, rather than having a separate lwlock (see
commit c75ebc657ff for more details). As this change is rather mechanical, it
seems to make sense to split it out into a separate commit, for easier review.

Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/fvfmkr5kk4nyex56ejgxj3uzi63isfxovp2biecb4bspbjrze7@az2pljabhnff
contrib/pg_buffercache/pg_buffercache_pages.c
contrib/pg_prewarm/autoprewarm.c
src/backend/storage/buffer/buf_init.c
src/backend/storage/buffer/bufmgr.c
src/backend/storage/buffer/freelist.c
src/backend/storage/buffer/localbuf.c
src/include/storage/buf_internals.h
src/include/storage/procnumber.h
src/test/modules/test_aio/test_aio.c