8000 IDENTIFY_SYSTEM now returns 3 fields, not 2 · postgres/postgres@cedd651 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cedd651

Browse files
committed
IDENTIFY_SYSTEM now returns 3 fields, not 2
1 parent 65377e0 commit cedd651

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/replication/libpqwalreceiver/libpqwalreceiver.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,15 @@ libpqrcv_connect(char *conninfo, XLogRecPtr startpoint)
114114
"the primary server: %s",
115115
PQerrorMessage(streamConn))));
116116
}
117-
if (PQnfields(res) != 2 || PQntuples(res) != 1)
117+
if (PQnfields(res) != 3 || PQntuples(res) != 1)
118118
{
119119
int ntuples = PQntuples(res);
120120
int nfields = PQnfields(res);
121121

122122
PQclear(res);
123123
ereport(ERROR,
124124
(errmsg("invalid response from primary server"),
125-
errdetail("Expected 1 tuple with 2 fields, got %d tuples with %d fields.",
125+
errdetail("Expected 1 tuple with 3 fields, got %d tuples with %d fields.",
126126
ntuples, nfields)));
127127
}
128128
primary_sysid = PQgetvalue(res, 0, 0);

0 commit comments

Comments
 (0)
0