Skip to content
Browse files
Patch SET's usage of currentCommandId during locking
This patch fixes the incorrect flagging of an update in SET in the lock
  • Loading branch information
jrgemignani committed Sep 28, 2021
1 parent 277707a commit d1ec95a380eb2206ccd2eded2e278d82bbf4a676
Showing 1 changed file with 1 addition and 1 deletion.
@@ -121,7 +121,7 @@ static HeapTuple update_entity_tuple(ResultRelInfo *resultRelInfo,
lockmode = ExecUpdateLockMode(estate, resultRelInfo);

lock_result = heap_lock_tuple(resultRelInfo->ri_RelationDesc, old_tuple,
GetCurrentCommandId(true), lockmode,
GetCurrentCommandId(false), lockmode,
LockWaitBlock, false, &buffer, &hufd);

if (lock_result == HeapTupleMayBeUpdated)

0 comments on commit d1ec95a

Please sign in to comment.