bufmgr: Make it easier to change number of buffer state bits
Andres Freund <andres@anarazel.de>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/include/storage/buf_internals.h | modified | +15 −5 |
Discussion
- AIO writes vs hint bits vs checksums 24 messages · 2024-09-24 → 2025-10-28
- MAX_BACKENDS size (comment accuracy) 19 messages · 2025-01-25 → 2025-02-24