forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita804a23
committed
Reduce spurious Hot Standby conflicts from never-visible records.
Hot Standby conflicts only with tuples that were visible atsome point. So ignore tuples from aborted transactions or fortuples updated/deleted during the inserting transaction whengenerating the conflict transaction ids.Following detailed analysis and test case by Noah Misch.Original report covered btree delete records, correctly observedby Heikki Linnakangas that this applies to other cases also.Fix covers all sources of cleanup records via common code.Includes additional fix compared to commit on HEAD1 parent2ffcb0c commita804a23
3 files changed
+28
-23
lines changedLines changed: 23 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3776 | 3776 |
| |
3777 | 3777 |
| |
3778 | 3778 |
| |
3779 |
| - | |
3780 |
| - | |
| 3779 | + | |
| 3780 | + | |
| 3781 | + | |
| 3782 | + | |
| 3783 | + | |
3781 | 3784 |
| |
3782 | 3785 |
| |
3783 | 3786 |
| |
| |||
3793 | 3796 |
| |
3794 | 3797 |
| |
3795 | 3798 |
| |
3796 |
| - | |
3797 |
| - | |
3798 |
| - | |
3799 |
| - | |
3800 |
| - | |
| 3799 | + | |
| 3800 | + | |
| 3801 | + | |
| 3802 | + | |
| 3803 | + | |
| 3804 | + | |
| 3805 | + | |
| 3806 | + | |
| 3807 | + | |
| 3808 | + | |
| 3809 | + | |
| 3810 | + | |
| 3811 | + | |
| 3812 | + | |
| 3813 | + | |
| 3814 | + | |
| 3815 | + | |
3801 | 3816 |
| |
3802 |
| - | |
| 3817 | + | |
3803 | 3818 |
| |
3804 | 3819 |
| |
3805 | 3820 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
237 | 237 |
| |
238 | 238 |
| |
239 | 239 |
| |
240 |
| - | |
241 | 240 |
| |
242 | 241 |
| |
243 | 242 |
| |
|
Lines changed: 5 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
580 | 580 |
| |
581 | 581 |
| |
582 | 582 |
| |
583 |
| - | |
584 | 583 |
| |
585 | 584 |
| |
586 | 585 |
| |
| |||
646 | 645 |
| |
647 | 646 |
| |
648 | 647 |
| |
649 |
| - | |
650 |
| - | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
651 | 652 |
| |
652 | 653 |
| |
653 | 654 |
| |
654 | 655 |
| |
655 | 656 |
| |
656 |
| - | |
657 |
| - | |
658 |
| - | |
659 |
| - | |
660 |
| - | |
661 |
| - | |
662 |
| - | |
663 |
| - | |
664 |
| - | |
665 |
| - | |
666 |
| - | |
| 657 | + | |
667 | 658 |
| |
668 | 659 |
| |
669 | 660 |
| |
|
0 commit comments
Comments
(0)