summaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorAlvaro Herrera2013-01-02 21:39:20 +0000
committerAlvaro Herrera2013-01-02 21:39:20 +0000
commit84f6fb81b8cb69c8da479d74e5b8078f6a1395c3 (patch)
treee50b312e9788acca8c90865466db62c64940a022 /src/backend/tcop/postgres.c
parent15658911d9947cda031a42bcbc3e2b745dff8f49 (diff)
Fix IsUnderPostmaster/EXEC_BACKEND confusion
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 937191334fc..407c548cf8f 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -3654,10 +3654,8 @@ PostgresMain(int argc, char *argv[], const char *username)
*/
CreateDataDirLockFile(false);
- /* In EXEC_BACKEND, this was set via BackendParameters */
-#ifndef EXEC_BACKEND
+ /* Initialize MaxBackends (if under postmaster, was done already) */
InitializeMaxBackends();
-#endif
}
/* Early initialization */