]> git.ipfire.org Git - thirdparty/postgresql.git/commit
bufmgr: Separate keys for private refcount infrastructure
authorAndres Freund <andres@anarazel.de>
Sun, 14 Dec 2025 18:09:43 +0000 (13:09 -0500)
committerAndres Freund <andres@anarazel.de>
Sun, 14 Dec 2025 18:09:43 +0000 (13:09 -0500)
commitedbaaea0a95ef1c32ffe8aa62e1556588c7a714b
treef77406a4e82446b61539addacbdf272b76464410
parent5b275a6e154833803d3beb49da0879d2fe8b1d6c
bufmgr: Separate keys for private refcount infrastructure

This makes lookups faster, due to allowing auto-vectorized lookups. It is also
beneficial for an upcoming patch, independent of auto-vectorization, as the
upcoming patch wants to track more information for each pinned buffer, making
the existing loop, iterating over an array of PrivateRefCountEntry, more
expensive due to increasing its size.

Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Discussion: https://postgr.es/m/fvfmkr5kk4nyex56ejgxj3uzi63isfxovp2biecb4bspbjrze7@az2pljabhnff
src/backend/storage/buffer/bufmgr.c
src/tools/pgindent/typedefs.list