In non-streaming replication mode, a sync message is sent to backend
after a parse message is sent to backend, expecting to get a ready for
query message. If different message is returned, pgpool will complain
that. This commit adds more information: the message kind returned and
the backend node id.
if (kind != 'Z')
ereport(ERROR,
(errmsg("unable to parse the query"),
- errdetail("invalid read kind")));
+ errdetail("invalid read kind \"%c\" returned from backend %d after Sync message sent", kind, i)));
/*
* SYNC message returns "Ready for Query" message.