OSDN Git Service

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)
commite77b630cf0c1501008b3b72b5621f2951ef82b71
tree6b25afa56af95f41ced9eab5e56f12eb58f03d7b
parent612b8434e40edc299e38bd6e4d7ac07183513118
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