summaryrefslogtreecommitdiff
path: root/contrib/pgbench/exprparse.y
diff options
context:
space:
mode:
authorHeikki Linnakangas2025-12-23 11:37:16 +0000
committerHeikki Linnakangas2025-12-23 11:37:16 +0000
commit955f5506863dce0a3416e3fae7c3297dbbaa946d (patch)
treeab3dd86bf06000049e921971c73ed5361addd4eb /contrib/pgbench/exprparse.y
parent8e0d32a4a1bfbae7f8340679c3586626b5fe3a08 (diff)
Fix bug in following update chain when locking a heap tuple
After waiting for a concurrent updater to finish, heap_lock_tuple() followed the update chain to lock all tuple versions. However, when stepping from the initial tuple to the next one, it failed to check that the next tuple's XMIN matches the initial tuple's XMAX. That's an important check whenever following an update chain, and the recursive part that follows the chain did it, but the initial step missed it. Without the check, if the updating transaction aborts, the updated tuple is vacuumed away and replaced by an unrelated tuple, the unrelated tuple might get incorrectly locked. Author: Jasper Smit <jasper.smit@servicenow.com> Discussion: https://www.postgresql.org/message-id/CAOG+RQ74x0q=kgBBQ=mezuvOeZBfSxM1qu_o0V28bwDz3dHxLw@mail.gmail.com Backpatch-through: 14
Diffstat (limited to 'contrib/pgbench/exprparse.y')
0 files changed, 0 insertions, 0 deletions