- Notifications
You must be signed in to change notification settings - Fork5
Commit758bd2a
committed
Respect Hot Standby controls while recycling btree index pages.
Btree pages were recycled after VACUUM deletes all records on apage and then a subsequent VACUUM occurs after the RecentXminhorizon is reached. Using RecentXmin meant that we did not respondcorrectly to the user controls provide to avoid Hot Standbyconflicts and so spurious conflicts could be generated in someworkload combinations. We now reuse pages only when we reachRecentGlobalXmin, which can be much later in the presence of longrunning queries and is also controlled by vacuum_defer_cleanup_ageand hot_standby_feedback.Noah Misch and Simon Riggs1 parent1568fa7 commit758bd2a
1 file changed
+10
-2
lines changedLines changed: 10 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
677 | 677 |
| |
678 | 678 |
| |
679 | 679 |
| |
| 680 | + | |
680 | 681 |
| |
681 | 682 |
| |
682 | 683 |
| |
| |||
689 | 690 |
| |
690 | 691 |
| |
691 | 692 |
| |
692 |
| - | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
693 | 696 |
| |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
694 | 702 |
| |
695 | 703 |
| |
696 |
| - | |
| 704 | + | |
697 | 705 |
| |
698 | 706 |
| |
699 | 707 |
| |
|
0 commit comments
Comments
(0)