Log Message:
-----------
* Fix some problems for pg_statsinfo on the standby server.
- PostgreSQL sometimes output stderr messages to *.log through system(),
so in a few cases, pg_statsinfo's logger will go into infinit-loop for
these unexpected messages...
- On standby server, pg_statsinfo could not perform age().
Therefore check the server status and avoid the error to use age().
Modified Files:
--------------
pg_statsinfo/bin:
collector_sql.h (r1.12 -> r1.13)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgstatsinfo/pg_statsinfo/bin/collector_sql.h?r1=1.12&r2=1.13)
logger.c (r1.24 -> r1.25)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgstatsinfo/pg_statsinfo/bin/logger.c?r1=1.24&r2=1.25)