pgsql: Add some logging code for unexpected cases in pgstat.c,

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add some logging code for unexpected cases in pgstat.c,
Date: 2010-03-12 22:19:20
Message-ID: 20100312221920.17B147541D0@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Add some logging code for unexpected cases in pgstat.c, particularly being
unable to read a stats file for reasons other than ENOENT, and having to reset
last_statrequest because it's later than current time in the collector.
Not clear if this will shed any light on the "pgstat wait timeout" business,
but it seems like a good idea in general.

In passing, do some message-style-police work on recently-added
pgstat_reset_shared_counters code.

Modified Files:
--------------
pgsql/src/backend/postmaster:
pgstat.c (r1.201 -> r1.202)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/postmaster/pgstat.c?r1=1.201&r2=1.202)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2010-03-12 23:21:48 pgsql: Re-add comma, oops.
Previous Message Tom Lane 2010-03-12 21:40:36 pgsql: Fix a commented-out block of code that pgindent didn't understand