Reduce DEF_MAXBACKENDS to 32 so that default configuration

is less likely to fail for lack of semaphores.
This commit is contained in:
Tom Lane 1999-03-06 21:25:04 +00:00
parent 731603a92b
commit d19fc4cacb
2 changed files with 4 additions and 4 deletions

4
src/configure vendored
View File

@ -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

View File

@ -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