summaryrefslogtreecommitdiff
path: root/src/include/storage/sinvaladt.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>1999-02-19 06:06:39 +0000
committerTom Lane <tgl@sss.pgh.pa.us>1999-02-19 06:06:39 +0000
commite77b630cf0c1501008b3b72b5621f2951ef82b71 (patch)
tree6b25afa56af95f41ced9eab5e56f12eb58f03d7b /src/include/storage/sinvaladt.h
parent612b8434e40edc299e38bd6e4d7ac07183513118 (diff)
downloadpostgresql-e77b630cf0c1501008b3b72b5621f2951ef82b71.tar.gz
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.
Diffstat (limited to 'src/include/storage/sinvaladt.h')
-rw-r--r--src/include/storage/sinvaladt.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/include/storage/sinvaladt.h b/src/include/storage/sinvaladt.h
index 161e288696..522eb5e220 100644
--- a/src/include/storage/sinvaladt.h
+++ b/src/include/storage/sinvaladt.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: sinvaladt.h,v 1.11 1999/02/13 23:22:10 momjian Exp $
+ * $Id: sinvaladt.h,v 1.12 1999/02/19 06:06:39 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -31,7 +31,7 @@ A------------- Header info --------------
endEntryChain (offset relative to B)
numEntries
maxNumEntries
- procState[MaxBackendId] --> limit
+ procState[MAXBACKENDS] --> limit
resetState (bool)
a tag (POSTID)
B------------- Start entry section -------
@@ -44,7 +44,6 @@ C----------------End shared segment -------
*/
/* Parameters (configurable) *******************************************/
-#define MaxBackendId 64 /* maximum number of backends */
#define MAXNUMMESSAGES 4000 /* maximum number of messages in seg */
@@ -71,7 +70,7 @@ typedef struct SISeg
Offset endEntryChain; /* (offset relative to B) */
int numEntries;
int maxNumEntries;
- ProcState procState[MaxBackendId]; /* reflects the
+ ProcState procState[MAXBACKENDS]; /* reflects the
* invalidation state */
/* here starts the entry section, controlled by offsets */
} SISeg;