- Notifications
You must be signed in to change notification settings - Fork28
Commitf946069
committed
Use TransactionXmin instead of RecentGlobalXmin in heap_abort_speculative().
There's a very low risk that RecentGlobalXmin could be far enough inthe past to be older than relfrozenxid, or even wrappedaround. Luckily the consequences of that having happened wouldn't betoo bad - the page wouldn't be pruned for a while.Avoid that risk by using TransactionXmin instead. As that's announcedvia MyPgXact->xmin, it is protected against wrapping around (see codecomments for details around relfrozenxid).Author: Andres FreundDiscussion:https://postgr.es/m/20200328213023.s4eyijhdosuc4vcj@alap3.anarazel.deBackpatch: 9.5-1 parent549a3e2 commitf946069
1 file changed
+15
-6
lines changedLines changed: 15 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5581 | 5581 |
| |
5582 | 5582 |
| |
5583 | 5583 |
| |
| 5584 | + | |
5584 | 5585 |
| |
5585 | 5586 |
| |
5586 | 5587 |
| |
| |||
5623 | 5624 |
| |
5624 | 5625 |
| |
5625 | 5626 |
| |
5626 |
| - | |
5627 |
| - | |
5628 |
| - | |
5629 |
| - | |
| 5627 | + | |
| 5628 | + | |
| 5629 | + | |
| 5630 | + | |
| 5631 | + | |
| 5632 | + | |
| 5633 | + | |
| 5634 | + | |
5630 | 5635 |
| |
5631 |
| - | |
5632 |
| - | |
| 5636 | + | |
| 5637 | + | |
| 5638 | + | |
| 5639 | + | |
| 5640 | + | |
| 5641 | + | |
5633 | 5642 |
| |
5634 | 5643 |
| |
5635 | 5644 |
| |
|
0 commit comments
Comments
(0)