aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_merge.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:37:21 +0200
commite3e05addee42c643867557a3065debb085f1d169 (patch)
tree7aa59c503fca7c295b4ce42f89eda2a3085319cc /src/backend/parser/parse_merge.c
parent86d2b434c9a3520a10db4feae236b74452d3d157 (diff)
downloadpostgresql-e3e05addee42c643867557a3065debb085f1d169.tar.gz
postgresql-e3e05addee42c643867557a3065debb085f1d169.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/parser/parse_merge.c')
0 files changed, 0 insertions, 0 deletions