Commit 05e6e78
committed
Reset lastOverflowedXid on standby when needed
Currently, lastOverflowedXid is never reset. It's just adjusted on new
transactions known to be overflowed. But if there are no overflowed
transactions for a long time, snapshots could be mistakenly marked as
suboverflowed due to wraparound.
This commit fixes this issue by resetting lastOverflowedXid when needed
altogether with KnownAssignedXids.
Backpatch to all supported versions.
Reported-by: Stan Hu
Discussion: https://postgr.es/m/CAMBWrQ%3DFp5UAsU_nATY7EMY7NHczG4-DTDU%3DmCvBQZAQ6wa2xQ%40mail.gmail.com
Author: Kyotaro Horiguchi, Alexander Korotkov
Reviewed-by: Stan Hu, Simon Riggs, Nikolay Samokhvalov, Andrey Borodin, Dmitry Dolgov1 parent d8bf0a1 commit 05e6e78
1 file changed
+19
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4444 | 4444 | | |
4445 | 4445 | | |
4446 | 4446 | | |
4447 | | - | |
| 4447 | + | |
4448 | 4448 | | |
4449 | 4449 | | |
4450 | 4450 | | |
4451 | 4451 | | |
4452 | 4452 | | |
4453 | 4453 | | |
| 4454 | + | |
| 4455 | + | |
| 4456 | + | |
| 4457 | + | |
| 4458 | + | |
| 4459 | + | |
| 4460 | + | |
4454 | 4461 | | |
4455 | 4462 | | |
4456 | 4463 | | |
4457 | 4464 | | |
4458 | 4465 | | |
4459 | | - | |
| 4466 | + | |
| 4467 | + | |
4460 | 4468 | | |
4461 | 4469 | | |
4462 | 4470 | | |
4463 | 4471 | | |
4464 | 4472 | | |
| 4473 | + | |
| 4474 | + | |
| 4475 | + | |
| 4476 | + | |
| 4477 | + | |
| 4478 | + | |
| 4479 | + | |
| 4480 | + | |
| 4481 | + | |
4465 | 4482 | | |
4466 | 4483 | | |
4467 | 4484 | | |
| |||
0 commit comments