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

Поиск
Список
Период
Сортировка
От Andres Freund
Тема pgsql: bufmgr: Make it easier to change number of buffer state bits
Дата
Msg-id E1tmWpC-000Rm6-2q@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(-)


В списке pgsql-committers по дате отправления: