diff options
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. * |