forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8ae4ef4

Amit Kapila
Remove incorrect assertion in reorderbuffer.c.
We start recording changes in ReorderBufferTXN even before we reachSNAPBUILD_CONSISTENT state so that if the commit is encountered afterreaching that we should be able to send the changes of the entire transaction.Now, while recording changes if the reorder buffer memory has exceededlogical_decoding_work_mem then we can start streaming if it is allowed andwe haven't yet streamed that data. However, we must not allow streaming tostart unless the snapshot has reached SNAPBUILD_CONSISTENT state.In passing, improve the comments atop ReorderBufferResetTXN to mention thecase when we need to continue streaming after getting an error.Author: Amit KapilaReviewed-by: Dilip KumarDiscussion:https://postgr.es/m/CAA4eK1KoOH0byboyYY40NBcC7Fe812trwTa+WY3jQF7WQWZbQg@mail.gmail.com1 parentbd94a9c commit8ae4ef4
1 file changed
+6
-4
lines changedLines changed: 6 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1891 | 1891 |
| |
1892 | 1892 |
| |
1893 | 1893 |
| |
| 1894 | + | |
| 1895 | + | |
1894 | 1896 |
| |
1895 | 1897 |
| |
1896 | 1898 |
| |
| |||
3461 | 3463 |
| |
3462 | 3464 |
| |
3463 | 3465 |
| |
| 3466 | + | |
| 3467 | + | |
| 3468 | + | |
| 3469 | + | |
3464 | 3470 |
| |
3465 | 3471 |
| |
3466 | 3472 |
| |
3467 | 3473 |
| |
3468 | 3474 |
| |
3469 | 3475 |
| |
3470 | 3476 |
| |
3471 |
| - | |
3472 |
| - | |
3473 |
| - | |
3474 | 3477 |
| |
3475 |
| - | |
3476 | 3478 |
| |
3477 | 3479 |
| |
3478 | 3480 |
| |
|
0 commit comments
Comments
(0)