You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
If SELECT FOR UPDATE NOWAIT tries to lock a tuple that is concurrentlybeing updated, it might fail to honor its NOWAIT specification and blockinstead of raising an error.Fix by adding a no-wait flag to EvalPlanQualFetch which it can pass downto heap_lock_tuple; also use it in EvalPlanQualFetch itself to avoidblocking while waiting for a concurrent transaction.Authors: Craig Ringer and Thomas Munro, tweaked by Álvarohttp://www.postgresql.org/message-id/51FB6703.9090801@2ndquadrant.comPer Thomas Munro in the course of his SKIP LOCKED feature submission,who also provided one of the isolation test specs.Backpatch to 9.4, because that's as far back as it applies withoutconflicts (although the bug goes all the way back). To that branch alsobackpatch Thomas Munro's new NOWAIT test cases, committed in master byHeikki as commit9ee16b4 .