forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8f779a1
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 parent3eff168 commit8f779a1
1 file changed
+19
-2
lines changedLines changed: 19 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3295 | 3295 |
| |
3296 | 3296 |
| |
3297 | 3297 |
| |
3298 |
| - | |
| 3298 | + | |
3299 | 3299 |
| |
3300 | 3300 |
| |
3301 | 3301 |
| |
3302 | 3302 |
| |
3303 | 3303 |
| |
3304 | 3304 |
| |
| 3305 | + | |
| 3306 | + | |
| 3307 | + | |
| 3308 | + | |
| 3309 | + | |
| 3310 | + | |
| 3311 | + | |
3305 | 3312 |
| |
3306 | 3313 |
| |
3307 | 3314 |
| |
3308 | 3315 |
| |
3309 | 3316 |
| |
3310 |
| - | |
| 3317 | + | |
| 3318 | + | |
3311 | 3319 |
| |
3312 | 3320 |
| |
3313 | 3321 |
| |
3314 | 3322 |
| |
3315 | 3323 |
| |
| 3324 | + | |
| 3325 | + | |
| 3326 | + | |
| 3327 | + | |
| 3328 | + | |
| 3329 | + | |
| 3330 | + | |
| 3331 | + | |
| 3332 | + | |
3316 | 3333 |
| |
3317 | 3334 |
| |
3318 | 3335 |
| |
|
0 commit comments
Comments
(0)