forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit11abea3
committed
Make logical WAL sender report streaming state appropriately
WAL senders sending logically-decoded data fail to properly report in"streaming" state when starting up, hence as long as one extra record isnot replayed, such WAL senders would remain in a "catchup" state, whichis inconsistent with the physical cousin.This can be easily reproduced by for example using pg_recvlogical andrestarting the upstream server. The TAP tests have been slightlymodified to detect the failure and strengthened so as future tests alsomake sure that a node is in streaming state when waiting for itscatchup.Backpatch down to 9.4 where this code has been introduced.Reported-by: Sawada MasahikoAuthor: Simon Riggs, Sawada MasahikoReviewed-by: Petr Jelinek, Michael Paquier, Vaishnavi PrabakaranDiscussion:https://postgr.es/m/CAD21AoB2ZbCCqOx=bgKMcLrAvs1V0ZMqzs7wBTuDySezTGtMZA@mail.gmail.com1 parentc350320 commit11abea3
1 file changed
+15
-5
lines changedLines changed: 15 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2168 | 2168 |
| |
2169 | 2169 |
| |
2170 | 2170 |
| |
2171 |
| - | |
| 2171 | + | |
2172 | 2172 |
| |
2173 | 2173 |
| |
2174 | 2174 |
| |
| |||
2757 | 2757 |
| |
2758 | 2758 |
| |
2759 | 2759 |
| |
2760 |
| - | |
2761 |
| - | |
2762 |
| - | |
2763 |
| - | |
| 2760 | + | |
| 2761 | + | |
| 2762 | + | |
| 2763 | + | |
2764 | 2764 |
| |
2765 | 2765 |
| |
2766 | 2766 |
| |
| |||
2773 | 2773 |
| |
2774 | 2774 |
| |
2775 | 2775 |
| |
| 2776 | + | |
| 2777 | + | |
| 2778 | + | |
2776 | 2779 |
| |
2777 | 2780 |
| |
2778 | 2781 |
| |
| |||
2781 | 2784 |
| |
2782 | 2785 |
| |
2783 | 2786 |
| |
| 2787 | + | |
| 2788 | + | |
| 2789 | + | |
| 2790 | + | |
| 2791 | + | |
| 2792 | + | |
| 2793 | + | |
2784 | 2794 |
| |
2785 | 2795 |
| |
2786 | 2796 |
| |
|
0 commit comments
Comments
(0)