summaryrefslogtreecommitdiff
path: root/src/configure
diff options
context:
space:
mode:
authorTom Lane1999-02-21 01:41:55 +0000
committerTom Lane1999-02-21 01:41:55 +0000
commit9d197856dd5eda5cf85b15e564ae09ef8fef0e9e (patch)
treeac85492fb01823aeb836e54f5e5511366346f418 /src/configure
parent75cccd0ad3184e3fa283f407c765520d3c774c86 (diff)
Rearrange handling of MAXBACKENDS a little bit. The default setting
of MAXBACKENDS is now 1024, since all it's costing is about 32 bytes of memory per array slot. configure's --with-maxbackends switch now controls DEF_MAXBACKENDS which is simply the default value of the postmaster's -N switch. Thus, the out-of-the-box configuration will still limit you to 64 backends, but you can go up to 1024 backends simply by restarting the postmaster with a different -N switch --- no rebuild required.
Diffstat (limited to 'src/configure')
-rwxr-xr-xsrc/configure10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/configure b/src/configure
index 2f01fc2dc36..f72f96f09fe 100755
--- a/src/configure
+++ b/src/configure
@@ -31,7 +31,7 @@ ac_help="$ac_help
ac_help="$ac_help
--with-pgport=<portnum> change default startup port "
ac_help="$ac_help
- --with-maxbackends=<n> set maximum number of server processes "
+ --with-maxbackends=<n> set default maximum number of server processes "
ac_help="$ac_help
--with-tcl build Tcl interfaces and pgtclsh "
ac_help="$ac_help
@@ -879,18 +879,18 @@ EOF
fi
-echo $ac_n "checking setting MAXBACKENDS""... $ac_c" 1>&6
-echo "configure:884: checking setting MAXBACKENDS" >&5
+echo $ac_n "checking setting DEF_MAXBACKENDS""... $ac_c" 1>&6
+echo "configure:884: checking setting DEF_MAXBACKENDS" >&5
# Check whether --with-maxbackends or --without-maxbackends was given.
if test "${with_maxbackends+set}" = set; then
withval="$with_maxbackends"
cat >> confdefs.h <<EOF
-#define MAXBACKENDS ${withval}
+#define DEF_MAXBACKENDS ${withval}
EOF
echo "$ac_t""$with_maxbackends" 1>&6
else
cat >> confdefs.h <<EOF
-#define MAXBACKENDS 64
+#define DEF_MAXBACKENDS 64
EOF
echo "$ac_t""64" 1>&6