| From: | Andres Freund <andres(at)anarazel(dot)de> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: bufmgr: Turn BUFFER_LOCK_* into an enum |
| Date: | 2025-12-03 23:40:47 |
| Message-ID: | E1vQwSk-002fZf-2c@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)gmail(dot)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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alexander Korotkov | 2025-12-04 08:55:52 | pgsql: Fix incorrect assertion bound in WaitForLSN() |
| Previous Message | Tom Lane | 2025-12-03 18:23:57 | pgsql: Make stats_ext test faster under cache-clobbering test condition |