diff options
| author | Heikki Linnakangas | 2015-05-18 07:18:46 +0000 |
|---|---|---|
| committer | Heikki Linnakangas | 2015-05-18 07:20:30 +0000 |
| commit | 4df132895016c6a99355776a8df284ff011a2e94 (patch) | |
| tree | c56eb3f3cbac9ecc482a993022393d20765b780b /src | |
| parent | d773b55713e44b7d4a67411b09e1f21f195b420f (diff) | |
Put back stats-collector restarting code, removed accidentally.
Removed that code snippet accidentally in the archive_mode='always' patch.
Also, use varname-tags for archive_command in the docs.
Fujii Masao
Diffstat (limited to 'src')
| -rw-r--r-- | src/backend/postmaster/postmaster.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 36440cbdccd..6e2ba08a93d 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -1645,6 +1645,10 @@ ServerLoop(void) start_autovac_launcher = false; /* signal processed */ } + /* If we have lost the stats collector, try to start a new one */ + if (PgStatPID == 0 && pmState == PM_RUN) + PgStatPID = pgstat_start(); + /* * If we have lost the archiver, try to start a new one. * |
