mirror of
https://github.com/postgres/postgres.git
synced 2025-12-04 12:02:48 +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:
@@ -255,13 +255,13 @@ AC_ARG_WITH(
|
||||
AC_DEFINE_UNQUOTED(DEF_PGPORT, "5432") AC_MSG_RESULT(5432)
|
||||
)
|
||||
|
||||
dnl MAXBACKENDS can be set by --with-maxbackends. Default value is 64.
|
||||
AC_MSG_CHECKING(setting MAXBACKENDS)
|
||||
dnl DEF_MAXBACKENDS can be set by --with-maxbackends. Default value is 64.
|
||||
AC_MSG_CHECKING(setting DEF_MAXBACKENDS)
|
||||
AC_ARG_WITH(
|
||||
maxbackends,
|
||||
[ --with-maxbackends=<n> set maximum number of server processes ],
|
||||
AC_DEFINE_UNQUOTED(MAXBACKENDS, ${withval}) AC_MSG_RESULT($with_maxbackends),
|
||||
AC_DEFINE_UNQUOTED(MAXBACKENDS, 64) AC_MSG_RESULT(64)
|
||||
[ --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, 64) AC_MSG_RESULT(64)
|
||||
)
|
||||
|
||||
dnl We exclude tcl support unless user says --with-tcl
|
||||
|
||||
Reference in New Issue
Block a user