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: Turn BUFFER_LOCK_* into an enum
Date: Wed, 03 Dec 2025 23:40:47 +0000
Message-ID: <E1vQwSk-002fZf-2c@gemulon.postgresql.org> (raw)

bufmgr: Turn BUFFER_LOCK_* into an enum

It seems cleaner to use an enum to tie the different values together. It also
helps to have a more descriptive type in the argument to various functions.

Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Discussion: https://postgr.es/m/fvfmkr5kk4nyex56ejgxj3uzi63isfxovp2biecb4bspbjrze7@az2pljabhnff

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/156680055dc523425f28ff5e61acf0f5bc99294b

Modified Files
--------------
src/backend/storage/buffer/bufmgr.c |  4 ++--
src/include/storage/bufmgr.h        | 13 ++++++++-----
src/tools/pgindent/typedefs.list    |  1 +
3 files changed, 11 insertions(+), 7 deletions(-)



Message-ID: <E1vQwSk-002fZf-2c@gemulon.postgresql.org>
Permalink:  ../E1vQwSk-002fZf-2c@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vQwSk-002fZf-2c@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: Turn BUFFER_LOCK_* into an enum
  In-Reply-To: <E1vQwSk-002fZf-2c@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