Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1565891

Browse files
committed
Set MaxBackends only on bootstrap and standalone modes
... not on auxiliary processes. I managed to overlook the fact that Ihad disabled assertions on my HEAD checkout long ago.Hopefully this will turn the buildfarm green again, and put an end totoday's silliness.
1 parent794397a commit1565891

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+
#ifndefEXEC_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)

[8]ページ先頭

©2009-2025 Movatter.jp