forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite1fee28
committed
Reset lastOverflowedXid on standby when needed
Currently, lastOverflowedXid is never reset. It's just adjusted on newtransactions known to be overflowed. But if there are no overflowedtransactions for a long time, snapshots could be mistakenly marked assuboverflowed due to wraparound.This commit fixes this issue by resetting lastOverflowedXid when neededaltogether with KnownAssignedXids.Backpatch to all supported versions.Reported-by: Stan HuDiscussion:https://postgr.es/m/CAMBWrQ%3DFp5UAsU_nATY7EMY7NHczG4-DTDU%3DmCvBQZAQ6wa2xQ%40mail.gmail.comAuthor: Kyotaro Horiguchi, Alexander KorotkovReviewed-by: Stan Hu, Simon Riggs, Nikolay Samokhvalov, Andrey Borodin, Dmitry Dolgov1 parentbf5cdcf commite1fee28
1 file changed
+19
-2
lines changedLines changed: 19 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3404 | 3404 |
| |
3405 | 3405 |
| |
3406 | 3406 |
| |
3407 |
| - | |
| 3407 | + | |
3408 | 3408 |
| |
3409 | 3409 |
| |
3410 | 3410 |
| |
3411 | 3411 |
| |
3412 | 3412 |
| |
3413 | 3413 |
| |
| 3414 | + | |
| 3415 | + | |
| 3416 | + | |
| 3417 | + | |
| 3418 | + | |
| 3419 | + | |
| 3420 | + | |
3414 | 3421 |
| |
3415 | 3422 |
| |
3416 | 3423 |
| |
3417 | 3424 |
| |
3418 | 3425 |
| |
3419 |
| - | |
| 3426 | + | |
| 3427 | + | |
3420 | 3428 |
| |
3421 | 3429 |
| |
3422 | 3430 |
| |
3423 | 3431 |
| |
3424 | 3432 |
| |
| 3433 | + | |
| 3434 | + | |
| 3435 | + | |
| 3436 | + | |
| 3437 | + | |
| 3438 | + | |
| 3439 | + | |
| 3440 | + | |
| 3441 | + | |
3425 | 3442 |
| |
3426 | 3443 |
| |
3427 | 3444 |
| |
|
0 commit comments
Comments
(0)