diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-07-03 16:52:12 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-07-03 16:52:12 +0000 |
commit | 31c1fea6a861ec696e16cdf1d786d3f6d9fccf7c (patch) | |
tree | ec4f7f62ffe7f09d8302e2993bcc7ac5cb458da1 /src | |
parent | c8fe66dfb22239ef177d64c45d932f2c432be6bb (diff) | |
download | postgresql-31c1fea6a861ec696e16cdf1d786d3f6d9fccf7c.tar.gz postgresql-31c1fea6a861ec696e16cdf1d786d3f6d9fccf7c.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/postmaster/postmaster.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 0d92324623c..3e92f16720e 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -37,7 +37,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.230 2001/07/01 00:06:23 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.231 2001/07/03 16:52:12 tgl Exp $ * * NOTES * @@ -569,14 +569,6 @@ PostmasterMain(int argc, char *argv[]) ExitPostmaster(1); } - /* - * Initialize and startup the statistics collector process - */ - if (pgstat_init() < 0) - ExitPostmaster(1); - if (pgstat_start() < 0) - ExitPostmaster(1); - if (DebugLvl > 2) { extern char **environ; @@ -700,6 +692,14 @@ PostmasterMain(int argc, char *argv[]) pqsignal(SIGTTOU, SIG_IGN); /* ignored */ /* + * Initialize and startup the statistics collector process + */ + if (pgstat_init() < 0) + ExitPostmaster(1); + if (pgstat_start() < 0) + ExitPostmaster(1); + + /* * We're ready to rock and roll... */ StartupPID = StartupDataBase(); |