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

Commit609fa63

Browse files
committed
Check for error during PQendcopy.
Oversight in commit78c8c81; noted while nosing around thewalreceiver startup/shutdown code.
1 parentfca85f8 commit609fa63

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎src/backend/replication/libpqwalreceiver/libpqwalreceiver.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,10 @@ libpqrcv_endstreaming(WalReceiverConn *conn, TimeLineID *next_tli)
459459
PQclear(res);
460460

461461
/* End the copy */
462-
PQendcopy(conn->streamConn);
462+
if (PQendcopy(conn->streamConn))
463+
ereport(ERROR,
464+
(errmsg("error while shutting down streaming COPY: %s",
465+
pchomp(PQerrorMessage(conn->streamConn)))));
463466

464467
/* CommandComplete should follow */
465468
res=PQgetResult(conn->streamConn);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp