forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5fd56b9
committed
Again report a useful error message when walreceiver's connection closes.
Since7c4f524 (merged in v10), a shutdown master is reported as FATAL: unexpected result after CommandComplete: server closed the connection unexpectedlyby walsender. It used to be LOG: replication terminated by primary server FATAL: could not send end-of-streaming message to primary: no COPY in progresswhile the old message clearly is not perfect, it's definitely betterthan what's reported now.The change comes from the attempt to handle finished COPYs withouterroring out, needed for the new logical replication, which wasn'tneeded before.There's probably better ways to handle this, but for now justexplicitly check for a closed connection.Author: Petr JelinekReviewed-By: Andres FreundDiscussion:https://postgr.es/m/f7c7dd08-855c-e4ed-41f4-d064a6c0665a@2ndquadrant.comBackpatch: -1 parent5c4109f commit5fd56b9
1 file changed
+14
-1
lines changedLines changed: 14 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
682 | 682 |
| |
683 | 683 |
| |
684 | 684 |
| |
685 |
| - | |
| 685 | + | |
686 | 686 |
| |
687 | 687 |
| |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
688 | 699 |
| |
689 | 700 |
| |
690 | 701 |
| |
| 702 | + | |
| 703 | + | |
691 | 704 |
| |
692 | 705 |
| |
693 | 706 |
| |
|
0 commit comments
Comments
(0)