Repair performance problem in SI segment manipulations: iterating
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 28 May 1999 17:03:31 +0000 (17:03 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 28 May 1999 17:03:31 +0000 (17:03 +0000)
commit71b030d28f48602ead1f4975a38ffb793264d3aa
treec535f43765552d16758e257a8896aa9e44e76c45
parentbc063f33cb63f10308f02cac8930696d33ff6198
Repair performance problem in SI segment manipulations: iterating
through MAXBACKENDS array entries used to be fine when MAXBACKENDS = 64.
It's not so cool with MAXBACKENDS = 1024 (or more!), especially not in a
frequently-used routine like SIDelExpiredDataEntries.  Repair by making
procState array size be the soft MaxBackends limit rather than the hard
limit, and by converting SIGetProcStateLimit() to a macro.
src/backend/storage/ipc/ipci.c
src/backend/storage/ipc/sinval.c
src/backend/storage/ipc/sinvaladt.c
src/include/storage/sinval.h
src/include/storage/sinvaladt.h