]> granicus.if.org Git - postgresql/commit
Adjust "pgstat wait timeout" message to be a translatable LOG message.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 20 Jan 2015 04:01:46 +0000 (23:01 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 20 Jan 2015 04:01:46 +0000 (23:01 -0500)
commita1a8d0249a6c37e8f5c01835b94472e969eb88c3
tree11b384cc2fae2f21d3af2c3b85e6a4bf4bc77d39
parentcebb3f032079fccb2c3224ba6d3eb39e987d4da9
Adjust "pgstat wait timeout" message to be a translatable LOG message.

Per discussion, change the log level of this message to be LOG not WARNING.
The main point of this change is to avoid causing buildfarm run failures
when the stats collector is exceptionally slow to respond, which it not
infrequently is on some of the smaller/slower buildfarm members.

This change does lose notice to an interactive user when his stats query
is looking at out-of-date stats, but the majority opinion (not necessarily
that of yours truly) is that WARNING messages would probably not get
noticed anyway on heavily loaded production systems.  A LOG message at
least ensures that the problem is recorded somewhere where bulk auditing
for the issue is possible.

Also, instead of an untranslated "pgstat wait timeout" message, provide
a translatable and hopefully more understandable message "using stale
statistics instead of current ones because stats collector is not
responding".  The original text was written hastily under the assumption
that it would never really happen in practice, which we now know to be
unduly optimistic.

Back-patch to all active branches, since we've seen the buildfarm issue
in all branches.
src/backend/postmaster/pgstat.c