- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit7381b79
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 parente0eaeaf commit7381b79
1 file changed
+19
-2
lines changedLines changed: 19 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3289 | 3289 |
| |
3290 | 3290 |
| |
3291 | 3291 |
| |
3292 |
| - | |
| 3292 | + | |
3293 | 3293 |
| |
3294 | 3294 |
| |
3295 | 3295 |
| |
3296 | 3296 |
| |
3297 | 3297 |
| |
3298 | 3298 |
| |
| 3299 | + | |
| 3300 | + | |
| 3301 | + | |
| 3302 | + | |
| 3303 | + | |
| 3304 | + | |
| 3305 | + | |
3299 | 3306 |
| |
3300 | 3307 |
| |
3301 | 3308 |
| |
3302 | 3309 |
| |
3303 | 3310 |
| |
3304 |
| - | |
| 3311 | + | |
| 3312 | + | |
3305 | 3313 |
| |
3306 | 3314 |
| |
3307 | 3315 |
| |
3308 | 3316 |
| |
3309 | 3317 |
| |
| 3318 | + | |
| 3319 | + | |
| 3320 | + | |
| 3321 | + | |
| 3322 | + | |
| 3323 | + | |
| 3324 | + | |
| 3325 | + | |
| 3326 | + | |
3310 | 3327 |
| |
3311 | 3328 |
| |
3312 | 3329 |
| |
|
0 commit comments
Comments
(0)