mirror of
https://github.com/postgres/postgres.git
synced 2025-08-18 12:22:09 +03:00
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.
This commit is contained in:
10
src/configure
vendored
10
src/configure
vendored
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user