File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 13
13
*
14
14
* Copyright (c) 2001-2006, PostgreSQL Global Development Group
15
15
*
16
- * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.122 2006/04/06 20:38:00 tgl Exp $
16
+ * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.123 2006/04/20 10:51:32 momjian Exp $
17
17
* ----------
18
18
*/
19
19
#include "postgres.h"
@@ -216,7 +216,8 @@ pgstat_init(void)
216
216
struct timeval tv ;
217
217
char test_byte ;
218
218
int sel_res ;
219
-
219
+ int tries = 0 ;
220
+
220
221
#define TESTBYTEVAL ((char) 199)
221
222
222
223
/*
@@ -276,6 +277,10 @@ pgstat_init(void)
276
277
continue ;
277
278
#endif
278
279
280
+ if (++ tries > 1 )
281
+ ereport (LOG ,
282
+ (errmsg ("trying another address for the statistics collector" )));
283
+
279
284
/*
280
285
* Create the socket.
281
286
*/
You can’t perform that action at this time.
0 commit comments