forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4ed0640
committed
Don't try to set InvalidXid as page pruning hint
If a transaction updates/deletes a tuple just before aborting, and aconcurrent transaction tries to prune the page concurrently, the prunermay see HeapTupleSatisfiesVacuum return HEAPTUPLE_DELETE_IN_PROGRESS,but a later call to HeapTupleGetUpdateXid() return InvalidXid. Thiswould cause an assertion failure in development builds, but would beotherwise Mostly Harmless.Fix by checking whether the updater Xid is valid before trying to applyit as page prune point.Reported by Andres in 20131124000203.GA4403@alap2.anarazel.de1 parentfbface6 commit4ed0640
1 file changed
+15
-6
lines changedLines changed: 15 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
466 | 466 |
| |
467 | 467 |
| |
468 | 468 |
| |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
469 | 484 |
| |
470 |
| - | |
471 |
| - | |
472 |
| - | |
473 |
| - | |
474 |
| - | |
475 |
| - | |
476 | 485 |
| |
477 | 486 |
| |
478 | 487 |
| |
|
0 commit comments
Comments
(0)