forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit23a0cf2
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 parentd278d4e commit23a0cf2
1 file changed
+15
-6
lines changedLines changed: 15 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5572 | 5572 |
| |
5573 | 5573 |
| |
5574 | 5574 |
| |
| 5575 | + | |
5575 | 5576 |
| |
5576 | 5577 |
| |
5577 | 5578 |
| |
| |||
5614 | 5615 |
| |
5615 | 5616 |
| |
5616 | 5617 |
| |
5617 |
| - | |
5618 |
| - | |
5619 |
| - | |
5620 |
| - | |
| 5618 | + | |
| 5619 | + | |
| 5620 | + | |
| 5621 | + | |
| 5622 | + | |
| 5623 | + | |
| 5624 | + | |
| 5625 | + | |
5621 | 5626 |
| |
5622 |
| - | |
5623 |
| - | |
| 5627 | + | |
| 5628 | + | |
| 5629 | + | |
| 5630 | + | |
| 5631 | + | |
| 5632 | + | |
5624 | 5633 |
| |
5625 | 5634 |
| |
5626 | 5635 |
| |
|
0 commit comments
Comments
(0)