pgsql: Add some logging code for unexpected cases in pgstat.c, - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Add some logging code for unexpected cases in pgstat.c,
Date
Msg-id 20100312221920.17B147541D0@cvs.postgresql.org
Whole thread Raw
List 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)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix a commented-out block of code that pgindent didn't understand
Next
From: momjian@postgresql.org (Bruce Momjian)
Date:
Subject: pgsql: Re-add comma, oops.