forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6ad903d
committed
Check interrupts during logical decoding more frequently.
When reading large amounts of preexisting WAL during logical decodingusing the SQL interface we possibly could fail to check interrupts indue time. Similarly the same could happen on systems with a very highWAL volume while creating a new logical replication slot, independentof the used interface.Previously these checks where only performed in xlogreader's read_pagecallbacks, while waiting for new WAL to be produced. That's notsufficient though, if there's never a need to wait. Walsender's sendloop already contains a interrupt check.Backpatch to 9.4 where the logical decoding feature was introduced.1 parentd27d493 commit6ad903d
2 files changed
+3
-5
lines changedLines changed: 2 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
451 | 451 |
| |
452 | 452 |
| |
453 | 453 |
| |
454 |
| - | |
455 |
| - | |
456 |
| - | |
457 |
| - | |
458 |
| - | |
459 | 454 |
| |
460 | 455 |
| |
461 | 456 |
| |
| |||
470 | 465 |
| |
471 | 466 |
| |
472 | 467 |
| |
| 468 | + | |
| 469 | + | |
473 | 470 |
| |
474 | 471 |
| |
475 | 472 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
438 | 438 |
| |
439 | 439 |
| |
440 | 440 |
| |
| 441 | + | |
441 | 442 |
| |
442 | 443 |
| |
443 | 444 |
| |
|
0 commit comments
Comments
(0)