Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit bc03c59

Browse files
committed
Adjust error message, now that we expect other message types than connection
close at this point. Fix PQsetnonblocking() comment. Fujii Masao
1 parent f564e65 commit bc03c59

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backend/replication/walsender.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ ProcessRepliesIfAny(void)
506506
default:
507507
ereport(FATAL,
508508
(errcode(ERRCODE_PROTOCOL_VIOLATION),
509-
errmsg("invalid standby closing message type %d",
509+
errmsg("invalid standby message type %d",
510510
firstchar)));
511511
}
512512
}

src/interfaces/libpq/fe-exec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2869,7 +2869,7 @@ PQparamtype(const PGresult *res, int param_num)
28692869

28702870
/* PQsetnonblocking:
28712871
* sets the PGconn's database connection non-blocking if the arg is TRUE
2872-
* or makes it non-blocking if the arg is FALSE, this will not protect
2872+
* or makes it blocking if the arg is FALSE, this will not protect
28732873
* you from PQexec(), you'll only be safe when using the non-blocking API.
28742874
* Needs to be called only on a connected database connection.
28752875
*/

0 commit comments

Comments
 (0)