We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c5f835 commit 71932ecCopy full SHA for 71932ec
src/backend/storage/lmgr/predicate.c
@@ -2283,6 +2283,9 @@ PredicateLockTupleRowVersionLink(const Relation relation,
2283
* locks. Even if a serializable transaction starts concurrently,
2284
* we know it can't take any SIREAD locks on the modified tuple
2285
* because the caller is holding the associated buffer page lock.
2286
+ * Memory reordering isn't an issue; the memory barrier in the
2287
+ * LWLock acquisition guarantees that this read occurs while the
2288
+ * buffer page lock is held.
2289
*/
2290
if (!TransactionIdIsValid(PredXact->SxactGlobalXmin))
2291
return;
0 commit comments