Get rid of slru.c's hardwired insistence on a fixed number of slots per
authorTom Lane <[email protected]>
Tue, 6 Dec 2005 23:08:34 +0000 (23:08 +0000)
committerTom Lane <[email protected]>
Tue, 6 Dec 2005 23:08:34 +0000 (23:08 +0000)
commit887a7c61f630b743f12a06b859ac1d03d2fb2bb9
tree7554bb3c604e3e4f1a780b06c52f78bbbf73f8f2
parent3001b4697d5233b5ea7b4612283e720835338d92
Get rid of slru.c's hardwired insistence on a fixed number of slots per
SLRU area.  The number of slots is still a compile-time constant (someday
we might want to change that), but at least it's a different constant for
each SLRU area.  Increase number of subtrans buffers to 32 based on
experimentation with a heavily subtrans-bashing test case, and increase
number of multixact member buffers to 16, since it's obviously silly for
it not to be at least twice the number of multixact offset buffers.
src/backend/access/transam/clog.c
src/backend/access/transam/multixact.c
src/backend/access/transam/slru.c
src/backend/access/transam/subtrans.c
src/backend/storage/lmgr/lwlock.c
src/include/access/clog.h
src/include/access/multixact.h
src/include/access/slru.h
src/include/access/subtrans.h