Commit d19fc4ca authored by Tom Lane's avatar Tom Lane

Reduce DEF_MAXBACKENDS to 32 so that default configuration

is less likely to fail for lack of semaphores.
parent 731603a9
...@@ -890,9 +890,9 @@ EOF ...@@ -890,9 +890,9 @@ EOF
echo "$ac_t""$with_maxbackends" 1>&6 echo "$ac_t""$with_maxbackends" 1>&6
else else
cat >> confdefs.h <<EOF cat >> confdefs.h <<EOF
#define DEF_MAXBACKENDS 64 #define DEF_MAXBACKENDS 32
EOF EOF
echo "$ac_t""64" 1>&6 echo "$ac_t""32" 1>&6
fi fi
......
...@@ -255,13 +255,13 @@ AC_ARG_WITH( ...@@ -255,13 +255,13 @@ AC_ARG_WITH(
AC_DEFINE_UNQUOTED(DEF_PGPORT, "5432") AC_MSG_RESULT(5432) AC_DEFINE_UNQUOTED(DEF_PGPORT, "5432") AC_MSG_RESULT(5432)
) )
dnl DEF_MAXBACKENDS can be set by --with-maxbackends. Default value is 64. dnl DEF_MAXBACKENDS can be set by --with-maxbackends. Default value is 32.
AC_MSG_CHECKING(setting DEF_MAXBACKENDS) AC_MSG_CHECKING(setting DEF_MAXBACKENDS)
AC_ARG_WITH( AC_ARG_WITH(
maxbackends, maxbackends,
[ --with-maxbackends=<n> set default maximum number of server processes ], [ --with-maxbackends=<n> set default maximum number of server processes ],
AC_DEFINE_UNQUOTED(DEF_MAXBACKENDS, ${withval}) AC_MSG_RESULT($with_maxbackends), AC_DEFINE_UNQUOTED(DEF_MAXBACKENDS, ${withval}) AC_MSG_RESULT($with_maxbackends),
AC_DEFINE_UNQUOTED(DEF_MAXBACKENDS, 64) AC_MSG_RESULT(64) AC_DEFINE_UNQUOTED(DEF_MAXBACKENDS, 32) AC_MSG_RESULT(32)
) )
dnl We exclude tcl support unless user says --with-tcl dnl We exclude tcl support unless user says --with-tcl
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment