summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-connect.c
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2021-11-06 18:31:21 +0300
committerAlexander Korotkov <akorotkov@postgresql.org>2021-11-06 18:34:19 +0300
commite1fee28a0441652f021045646808a772314798f9 (patch)
treea46a44229a152e2eba4a7afb7a442f587b014e72 /src/interfaces/libpq/fe-connect.c
parentbf5cdcfd5e444756378e60307a89b8cad16f65c0 (diff)
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 Dolgov
Diffstat (limited to 'src/interfaces/libpq/fe-connect.c')
0 files changed, 0 insertions, 0 deletions