forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb0f6bd4
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 parent01a11c7 commitb0f6bd4
1 file changed
+19
-2
lines changedLines changed: 19 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4445 | 4445 |
| |
4446 | 4446 |
| |
4447 | 4447 |
| |
4448 |
| - | |
| 4448 | + | |
4449 | 4449 |
| |
4450 | 4450 |
| |
4451 | 4451 |
| |
4452 | 4452 |
| |
4453 | 4453 |
| |
4454 | 4454 |
| |
| 4455 | + | |
| 4456 | + | |
| 4457 | + | |
| 4458 | + | |
| 4459 | + | |
| 4460 | + | |
| 4461 | + | |
4455 | 4462 |
| |
4456 | 4463 |
| |
4457 | 4464 |
| |
4458 | 4465 |
| |
4459 | 4466 |
| |
4460 |
| - | |
| 4467 | + | |
| 4468 | + | |
4461 | 4469 |
| |
4462 | 4470 |
| |
4463 | 4471 |
| |
4464 | 4472 |
| |
4465 | 4473 |
| |
| 4474 | + | |
| 4475 | + | |
| 4476 | + | |
| 4477 | + | |
| 4478 | + | |
| 4479 | + | |
| 4480 | + | |
| 4481 | + | |
| 4482 | + | |
4466 | 4483 |
| |
4467 | 4484 |
| |
4468 | 4485 |
| |
|
0 commit comments
Comments
(0)