Index: src/backend/postmaster/pgstat.c =================================================================== RCS file: /cvsroot/pgsql/src/backend/postmaster/pgstat.c,v retrieving revision 1.122 diff -c -c -r1.122 pgstat.c *** src/backend/postmaster/pgstat.c 6 Apr 2006 20:38:00 -0000 1.122 --- src/backend/postmaster/pgstat.c 20 Apr 2006 10:43:16 -0000 *************** *** 216,222 **** struct timeval tv; char test_byte; int sel_res; ! #define TESTBYTEVAL ((char) 199) /* --- 216,223 ---- struct timeval tv; char test_byte; int sel_res; ! int tries = 0; ! #define TESTBYTEVAL ((char) 199) /* *************** *** 276,281 **** --- 277,286 ---- continue; #endif + if (++tries > 1) + ereport(LOG, + (errmsg("trying another address for the statistics collector"))); + /* * Create the socket. */