Skip to content

Commit 1565891

Browse files
committed
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.
1 parent 794397a commit 1565891

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/backend/tcop/postgres.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3653,6 +3653,11 @@ PostgresMain(int argc, char *argv[], const char *username)
36533653
* Create lockfile for data directory.
36543654
*/
36553655
CreateDataDirLockFile(false);
3656+
3657+
/* In EXEC_BACKEND, this was set via BackendParameters */
3658+
#ifndef EXEC_BACKEND
3659+
InitializeMaxBackends();
3660+
#endif
36563661
}
36573662

36583663
/* Early initialization */

src/backend/utils/init/postinit.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,6 @@ InitializeMaxBackends(void)
453453
void
454454
BaseInit(void)
455455
{
456-
InitializeMaxBackends();
457-
458456
/*
459457
* Attach to shared memory and semaphores, and initialize our
460458
* input/output/debugging file descriptors.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy