postgresql/src/backend
Tom Lane 75b48e1fff 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.
2015-01-19 23:01:33 -05:00
..
access Use abbreviated keys for faster sorting of text datums. 2015-01-19 15:28:27 -05:00
bootstrap Remove some dead IsUnderPostmaster code from bootstrap.c. 2015-01-14 00:37:02 +01:00
catalog Spell the X072 feature correctly, was missing "with". 2015-01-13 16:08:55 +02:00
commands Use abbreviated keys for faster sorting of text datums. 2015-01-19 15:28:27 -05:00
executor Use abbreviated keys for faster sorting of text datums. 2015-01-19 15:28:27 -05:00
foreign Update copyright for 2015 2015-01-06 11:43:47 -05:00
lib Use abbreviated keys for faster sorting of text datums. 2015-01-19 15:28:27 -05:00
libpq Update copyright for 2015 2015-01-06 11:43:47 -05:00
main Always set the six locale category environment variables in main(). 2015-01-07 22:34:57 -05:00
nodes Improve new caching logic in tbm_add_tuples(). 2015-01-16 13:28:30 -05:00
optimizer Fix ancient thinko in default table rowcount estimation. 2015-01-18 17:04:11 -05:00
parser Fix get_object_address argument type for extension statement 2015-01-12 15:32:48 -03:00
po Translation updates 2014-12-15 00:25:35 -05:00
port Add barriers to the latch code. 2015-01-13 12:58:43 +01:00
postmaster Adjust "pgstat wait timeout" message to be a translatable LOG message. 2015-01-19 23:01:33 -05:00
regex Update copyright for 2015 2015-01-06 11:43:47 -05:00
replication Replace walsender's latch with the general shared latch. 2015-01-17 13:00:42 +01:00
rewrite Update copyright for 2015 2015-01-06 11:43:47 -05:00
snowball Update copyright for 2015 2015-01-06 11:43:47 -05:00
storage Fix various shortcomings of the new PrivateRefCount infrastructure. 2015-01-19 23:59:41 +01:00
tcop Add a default local latch for use in signal handlers. 2015-01-14 18:45:22 +01:00
tsearch Update copyright for 2015 2015-01-06 11:43:47 -05:00
utils Use abbreviated keys for faster sorting of text datums. 2015-01-19 15:28:27 -05:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
Makefile Update copyright for 2015 2015-01-06 11:43:47 -05:00
nls.mk xlogreader.c: Fix report_invalid_record translatability flag 2015-01-09 12:34:25 -03:00