IDENTIFY_SYSTEM now returns 3 fields, not 2
This commit is contained in:
parent
65377e0b9c
commit
cedd6515ba
@ -114,7 +114,7 @@ libpqrcv_connect(char *conninfo, XLogRecPtr startpoint)
|
|||||||
"the primary server: %s",
|
"the primary server: %s",
|
||||||
PQerrorMessage(streamConn))));
|
PQerrorMessage(streamConn))));
|
||||||
}
|
}
|
||||||
if (PQnfields(res) != 2 || PQntuples(res) != 1)
|
if (PQnfields(res) != 3 || PQntuples(res) != 1)
|
||||||
{
|
{
|
||||||
int ntuples = PQntuples(res);
|
int ntuples = PQntuples(res);
|
||||||
int nfields = PQnfields(res);
|
int nfields = PQnfields(res);
|
||||||
@ -122,7 +122,7 @@ libpqrcv_connect(char *conninfo, XLogRecPtr startpoint)
|
|||||||
PQclear(res);
|
PQclear(res);
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errmsg("invalid response from primary server"),
|
(errmsg("invalid response from primary server"),
|
||||||
errdetail("Expected 1 tuple with 2 fields, got %d tuples with %d fields.",
|
errdetail("Expected 1 tuple with 3 fields, got %d tuples with %d fields.",
|
||||||
ntuples, nfields)));
|
ntuples, nfields)));
|
||||||
}
|
}
|
||||||
primary_sysid = PQgetvalue(res, 0, 0);
|
primary_sysid = PQgetvalue(res, 0, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user