mirror of
https://github.com/postgres/postgres.git
synced 2025-06-10 00:01:28 -04:00
Add "retry another address" log message on statistics collector socket
failure, to reduce confusion in the log file.
This commit is contained in:
parent
eac825aa68
commit
ea6d54ee06
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 2001-2006, PostgreSQL Global Development Group
|
* 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"
|
#include "postgres.h"
|
||||||
@ -216,6 +216,7 @@ pgstat_init(void)
|
|||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
char test_byte;
|
char test_byte;
|
||||||
int sel_res;
|
int sel_res;
|
||||||
|
int tries = 0;
|
||||||
|
|
||||||
#define TESTBYTEVAL ((char) 199)
|
#define TESTBYTEVAL ((char) 199)
|
||||||
|
|
||||||
@ -276,6 +277,10 @@ pgstat_init(void)
|
|||||||
continue;
|
continue;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (++tries > 1)
|
||||||
|
ereport(LOG,
|
||||||
|
(errmsg("trying another address for the statistics collector")));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create the socket.
|
* Create the socket.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user