diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c index cd3f4f17737534ad4f3262d50eec0c4858caca7f..6725a0e043104fc9576d6e92fbabab68ad2ef8ec 100644 --- a/src/backend/postmaster/pgstat.c +++ b/src/backend/postmaster/pgstat.c @@ -3253,7 +3253,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(&pgStatLatch, @@ -3981,7 +3981,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 */ if (IsAutoVacuumLauncherProcess())