pgsql: bufmgr: Separate keys for private refcount infrastructure

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: bufmgr: Separate keys for private refcount infrastructure
Date: 2025-12-14 18:16:39
Message-ID: E1vUqe6-000lAR-1N@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)gmail(dot)com>
Discussion: https://postgr.es/m/fvfmkr5kk4nyex56ejgxj3uzi63isfxovp2biecb4bspbjrze7@az2pljabhnff

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/edbaaea0a95ef1c32ffe8aa62e1556588c7a714b

Modified Files
--------------
src/backend/storage/buffer/bufmgr.c | 141 ++++++++++++++++++++++++------------
src/tools/pgindent/typedefs.list | 1 +
2 files changed, 97 insertions(+), 45 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2025-12-14 19:31:16 pgsql: Looks like we can't test NLS on machines that lack any es_ES loc
Previous Message Tom Lane 2025-12-14 17:55:02 pgsql: Try a few different locale name spellings in nls.sql.