pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: bufmgr: Make it easier to change number of buffer state bits
Date: Mon, 24 Feb 2025 11:40:39 +0000
Message-ID: <E1tmWpC-000Rm6-2q@gemulon.postgresql.org> (raw)

bufmgr: Make it easier to change number of buffer state bits

In an upcoming commit I'd like to change the number of bits for the usage
count (the current max is 5, fitting in three bits, but we reserve four
bits). Until now that required adjusting a bunch of magic constants, now the
constants are defined based on the number of bits reserved.

Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>
Discussion: https://postgr.es/m/lxzj26ga6ippdeunz6kuncectr5gfuugmm2ry22qu6hcx6oid6@lzx3sjsqhmt6
Discussion: https://postgr.es/m/riivolmg6uzfvpzfn6wjo3ghwt42rcec43ok6mv4oenfg654y7@x7dbposbskwd

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/418451bfe161e4b86c29f098e4d93b2347d35774

Modified Files
--------------
src/include/storage/buf_internals.h | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)



Message-ID: <E1tmWpC-000Rm6-2q@gemulon.postgresql.org>
Permalink:  ../E1tmWpC-000Rm6-2q@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tmWpC-000Rm6-2q@gemulon.postgresql.org

 · 

reply

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: andres@anarazel.de, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: bufmgr: Make it easier to change number of buffer state bits
  In-Reply-To: <E1tmWpC-000Rm6-2q@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