Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Sign up
Appearance settings

Commitcedd651

Browse files
committed
IDENTIFY_SYSTEM now returns 3 fields, not 2
1 parent65377e0 commitcedd651

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
intntuples=PQntuples(res);
120120
intnfields=PQnfields(res);
121121

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp