aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2013-01-02 17:49:06 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2013-01-02 17:57:56 -0300
commit15658911d9947cda031a42bcbc3e2b745dff8f49 (patch)
tree9de1af5c7617526cf783fd5afbb8607203665ccf /src/backend/tcop/postgres.c
parent794397ae1d1c6d33d11a9b0951a420c2082bcd6c (diff)
downloadpostgresql-15658911d9947cda031a42bcbc3e2b745dff8f49.tar.gz
postgresql-15658911d9947cda031a42bcbc3e2b745dff8f49.zip
Set MaxBackends only on bootstrap and standalone modes
... not on auxiliary processes. I managed to overlook the fact that I had disabled assertions on my HEAD checkout long ago. Hopefully this will turn the buildfarm green again, and put an end to today's silliness.
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index e3a4db5de24..937191334fc 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -3653,6 +3653,11 @@ PostgresMain(int argc, char *argv[], const char *username)
* Create lockfile for data directory.
*/
CreateDataDirLockFile(false);
+
+ /* In EXEC_BACKEND, this was set via BackendParameters */
+#ifndef EXEC_BACKEND
+ InitializeMaxBackends();
+#endif
}
/* Early initialization */