Pgpool-II 3.4 or later, pgpool_status format changed, and format both old and new is supported.
Pgpool might read status in file incorrectly, when old format is reading by Pgpool.
This is rare case, and noproblem if it is happend.
ereport(LOG,
(errmsg("read_status_file: %d th backend is set to down status", i)));
}
- else if (BACKEND_INFO(i).backend_status == CON_CONNECT_WAIT ||
- BACKEND_INFO(i).backend_status == CON_UP)
+ else if (backend_rec.status[i] == CON_CONNECT_WAIT ||
+ backend_rec.status[i] == CON_UP)
{
BACKEND_INFO(i).backend_status = CON_CONNECT_WAIT;
(void)write_status_file();