Allow maximum number of backends to be set at configure time
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 19 Feb 1999 06:06:39 +0000 (06:06 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 19 Feb 1999 06:06:39 +0000 (06:06 +0000)
commit2a117071d78f8b481df72756cf7de6e157f3fa96
tree1724caf53560a7ff67968382f97335ea09376d9f
parentf6608811a7fd29c5ce01f85aee98a9d0e26ee767
Allow maximum number of backends to be set at configure time
(--with-maxbackends).  Add a postmaster switch (-N backends) that allows
the limit to be reduced at postmaster start time.  (You can't increase it,
sorry to say, because there are still some fixed-size arrays.)
Grab the number of semaphores indicated by min(MAXBACKENDS, -N) at
postmaster startup, so that this particular form of bogus configuration
is exposed immediately rather than under heavy load.
14 files changed:
src/backend/postmaster/postmaster.c
src/backend/storage/ipc/ipci.c
src/backend/storage/ipc/sinvaladt.c
src/backend/storage/lmgr/lock.c
src/backend/storage/lmgr/proc.c
src/backend/utils/init/postinit.c
src/configure
src/configure.in
src/include/config.h.in
src/include/storage/ipc.h
src/include/storage/lmgr.h
src/include/storage/lock.h
src/include/storage/proc.h
src/include/storage/sinvaladt.h