forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd5eb1fe
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 parent4b8860e commitd5eb1fe
1 file changed
+16
-6
lines changedLines changed: 16 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1926 | 1926 |
| |
1927 | 1927 |
| |
1928 | 1928 |
| |
1929 |
| - | |
1930 |
| - | |
| 1929 | + | |
| 1930 | + | |
1931 | 1931 |
| |
1932 | 1932 |
| |
1933 | 1933 |
| |
| |||
2483 | 2483 |
| |
2484 | 2484 |
| |
2485 | 2485 |
| |
2486 |
| - | |
2487 |
| - | |
2488 |
| - | |
2489 |
| - | |
| 2486 | + | |
| 2487 | + | |
| 2488 | + | |
| 2489 | + | |
2490 | 2490 |
| |
2491 | 2491 |
| |
2492 | 2492 |
| |
| |||
2499 | 2499 |
| |
2500 | 2500 |
| |
2501 | 2501 |
| |
| 2502 | + | |
| 2503 | + | |
| 2504 | + | |
2502 | 2505 |
| |
2503 | 2506 |
| |
2504 | 2507 |
| |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
2505 | 2515 |
| |
2506 | 2516 |
| |
2507 | 2517 |
| |
|
0 commit comments
Comments
(0)