Skip to content

Commit 31c1fea

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 a bad idea to start it before we have set up to catch SIGCHLD signals.
1 parent c8fe66d commit 31c1fea

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
extern char **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)
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