forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb48df81
committed
Fix oldest xmin and LSN computation across repslots after advancing
Advancing a replication slot did not recompute the oldest xmin and LSNvalues across replication slots, preventing resource removal likesegments not recycled at checkpoint time. The original commit thatintroduced the slot advancing in9c7d06d never did the update of thoseoldest values, andb0afdca removed this code.This commit adds a TAP test to check segment recycling with advancingfor physical slots, enforcing an extra segment switch before advancingto check if the segment gets correctly recycled after a checkpoint.Reported-by: Andres FreundReviewed-by: Alexey Kondratov, Kyptaro HoriguchiDiscussion:https://postgr.es/m/20200609171904.kpltxxvjzislidks@alap3.anarazel.deBackpatch-through: 111 parent0a40563 commitb48df81
File tree
2 files changed
+26
-2
lines changed- src
- backend/replication
- test/recovery/t
2 files changed
+26
-2
lines changedLines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
621 | 621 |
| |
622 | 622 |
| |
623 | 623 |
| |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
624 | 631 |
| |
625 | 632 |
| |
626 | 633 |
| |
|
Lines changed: 19 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| |||
364 | 364 |
| |
365 | 365 |
| |
366 | 366 |
| |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
367 | 371 |
| |
368 | 372 |
| |
369 | 373 |
| |
370 | 374 |
| |
371 | 375 |
| |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
372 | 382 |
| |
373 | 383 |
| |
374 | 384 |
| |
375 |
| - | |
| 385 | + | |
| 386 | + | |
376 | 387 |
| |
377 | 388 |
| |
378 | 389 |
| |
| |||
392 | 403 |
| |
393 | 404 |
| |
394 | 405 |
| |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + |
0 commit comments
Comments
(0)