forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0e708d3
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 parent038c9bb commit0e708d3
1 file changed
+15
-6
lines changedLines changed: 15 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6126 | 6126 |
| |
6127 | 6127 |
| |
6128 | 6128 |
| |
| 6129 | + | |
6129 | 6130 |
| |
6130 | 6131 |
| |
6131 | 6132 |
| |
| |||
6168 | 6169 |
| |
6169 | 6170 |
| |
6170 | 6171 |
| |
6171 |
| - | |
6172 |
| - | |
6173 |
| - | |
6174 |
| - | |
| 6172 | + | |
| 6173 | + | |
| 6174 | + | |
| 6175 | + | |
| 6176 | + | |
| 6177 | + | |
| 6178 | + | |
| 6179 | + | |
6175 | 6180 |
| |
6176 |
| - | |
6177 |
| - | |
| 6181 | + | |
| 6182 | + | |
| 6183 | + | |
| 6184 | + | |
| 6185 | + | |
| 6186 | + | |
6178 | 6187 |
| |
6179 | 6188 |
| |
6180 | 6189 |
| |
|
0 commit comments
Comments
(0)