aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2006-04-20 10:51:32 +0000
committerBruce Momjian <bruce@momjian.us>2006-04-20 10:51:32 +0000
commitea6d54ee06428e610af62d11fcd4bcd34f9c4514 (patch)
tree55183ee720afa67fd2a6a18f7d5fe194b9759b2e /src
parenteac825aa681f50b20c7a96379fdf3904d036c916 (diff)
downloadpostgresql-ea6d54ee06428e610af62d11fcd4bcd34f9c4514.tar.gz
postgresql-ea6d54ee06428e610af62d11fcd4bcd34f9c4514.zip
Add "retry another address" log message on statistics collector socket
failure, to reduce confusion in the log file.
Diffstat (limited to 'src')
-rw-r--r--src/backend/postmaster/pgstat.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c
index cfd3997409d..788dedb9ee9 100644
--- a/src/backend/postmaster/pgstat.c
+++ b/src/backend/postmaster/pgstat.c
@@ -13,7 +13,7 @@
*
* Copyright (c) 2001-2006, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.122 2006/04/06 20:38:00 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.123 2006/04/20 10:51:32 momjian Exp $
* ----------
*/
#include "postgres.h"
@@ -216,7 +216,8 @@ pgstat_init(void)
struct timeval tv;
char test_byte;
int sel_res;
-
+ int tries = 0;
+
#define TESTBYTEVAL ((char) 199)
/*
@@ -276,6 +277,10 @@ pgstat_init(void)
continue;
#endif
+ if (++tries > 1)
+ ereport(LOG,
+ (errmsg("trying another address for the statistics collector")));
+
/*
* Create the socket.
*/