aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/execParallel.c
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2024-02-08 12:45:26 +0200
committerAlexander Korotkov <akorotkov@postgresql.org>2024-02-09 12:38:32 +0200
commit503299b7f728409874adc2f5df9d42857700b046 (patch)
treed95f034d5c038a6224791adc3916d50f8284bee2 /src/backend/executor/execParallel.c
parentd17a3a4c6a34f61a3d4d9faa7a70c14d8d0c0ffb (diff)
downloadpostgresql-503299b7f728409874adc2f5df9d42857700b046.tar.gz
postgresql-503299b7f728409874adc2f5df9d42857700b046.zip
Fix wrong logic in TransactionIdInRecentPast()
The TransactionIdInRecentPast() should return false for all the transactions older than TransamVariables->oldestClogXid. However, the function contains a bug in comparison FullTransactionId to TransactionID allowing full transactions between nextXid - 2^32 and oldestClogXid - 2^31. This commit fixes TransactionIdInRecentPast() by turning the oldestClogXid into FullTransactionId first, then performing the comparison. Backpatch to all supported versions. Reported-by: Egor Chindyaskin Bug: 18212 Discussion: https://postgr.es/m/18212-547307f8adf57262%40postgresql.org Author: Karina Litskevich Reviewed-by: Kyotaro Horiguchi Backpatch-through: 12
Diffstat (limited to 'src/backend/executor/execParallel.c')
0 files changed, 0 insertions, 0 deletions