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

Commit31c1fea

Browse files
committed
Start the stats collector at a less randomly chosen time. Bad idea
to start it before we have acquired the data directory lock; also abad idea to start it before we have set up to catch SIGCHLD signals.
1 parentc8fe66d commit31c1fea

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

‎src/backend/postmaster/postmaster.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*
3939
* IDENTIFICATION
40-
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.230 2001/07/01 00:06:23 tgl Exp $
40+
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.231 2001/07/03 16:52:12 tgl Exp $
4141
*
4242
* NOTES
4343
*
@@ -569,14 +569,6 @@ PostmasterMain(int argc, char *argv[])
569569
ExitPostmaster(1);
570570
}
571571

572-
/*
573-
* Initialize and startup the statistics collector process
574-
*/
575-
if (pgstat_init()<0)
576-
ExitPostmaster(1);
577-
if (pgstat_start()<0)
578-
ExitPostmaster(1);
579-
580572
if (DebugLvl>2)
581573
{
582574
externchar**environ;
@@ -699,6 +691,14 @@ PostmasterMain(int argc, char *argv[])
699691
pqsignal(SIGTTIN,SIG_IGN);/* ignored */
700692
pqsignal(SIGTTOU,SIG_IGN);/* ignored */
701693

694+
/*
695+
* Initialize and startup the statistics collector process
696+
*/
697+
if (pgstat_init()<0)
698+
ExitPostmaster(1);
699+
if (pgstat_start()<0)
700+
ExitPostmaster(1);
701+
702702
/*
703703
* We're ready to rock and roll...
704704
*/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp