aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/backend/postmaster/pgstat.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c
index 0cf498866a3..827ad713b58 100644
--- a/src/backend/postmaster/pgstat.c
+++ b/src/backend/postmaster/pgstat.c
@@ -3369,7 +3369,7 @@ PgstatCollectorMain(int argc, char *argv[])
* first water, but until somebody wants to debug exactly what's
* happening there, this is the best we can do. The two-second
* timeout matches our pre-9.2 behavior, and needs to be short enough
- * to not provoke "pgstat wait timeout" complaints from
+ * to not provoke "using stale statistics" complaints from
* backend_read_statsfile.
*/
wr = WaitLatchOrSocket(MyLatch,
@@ -4442,7 +4442,9 @@ backend_read_statsfile(void)
}
if (count >= PGSTAT_POLL_LOOP_COUNT)
- elog(WARNING, "pgstat wait timeout");
+ ereport(LOG,
+ (errmsg("using stale statistics instead of current ones "
+ "because stats collector is not responding")));
/*
* Autovacuum launcher wants stats about all databases, but a shallow read