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 1313 *
1414 * Copyright (c) 2001-2006, PostgreSQL Global Development Group
1515 *
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 $
1717 * ----------
1818 */
1919#include "postgres.h"
@@ -216,7 +216,8 @@ pgstat_init(void)
216216 struct timeval tv ;
217217 char test_byte ;
218218 int sel_res ;
219-
219+ int tries = 0 ;
220+
220221#define TESTBYTEVAL ((char) 199)
221222
222223 /*
@@ -276,6 +277,10 @@ pgstat_init(void)
276277 continue ;
277278#endif
278279
280+ if (++ tries > 1 )
281+ ereport (LOG ,
282+ (errmsg ("trying another address for the statistics collector" )));
283+
279284 /*
280285 * Create the socket.
281286 */
You can’t perform that action at this time.
0 commit comments