forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1ca97af
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 parent250041a commit1ca97af
1 file changed
+15
-6
lines changedLines changed: 15 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6278 | 6278 |
| |
6279 | 6279 |
| |
6280 | 6280 |
| |
| 6281 | + | |
6281 | 6282 |
| |
6282 | 6283 |
| |
6283 | 6284 |
| |
| |||
6320 | 6321 |
| |
6321 | 6322 |
| |
6322 | 6323 |
| |
6323 |
| - | |
6324 |
| - | |
6325 |
| - | |
6326 |
| - | |
| 6324 | + | |
| 6325 | + | |
| 6326 | + | |
| 6327 | + | |
| 6328 | + | |
| 6329 | + | |
| 6330 | + | |
| 6331 | + | |
6327 | 6332 |
| |
6328 |
| - | |
6329 |
| - | |
| 6333 | + | |
| 6334 | + | |
| 6335 | + | |
| 6336 | + | |
| 6337 | + | |
| 6338 | + | |
6330 | 6339 |
| |
6331 | 6340 |
| |
6332 | 6341 |
| |
|
0 commit comments
Comments
(0)