mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
You must hold a lock on the heap page when you call
CheckForSerializableConflictOut(), because it can set hint bits. YAMAMOTO Takashi
This commit is contained in:
@ -1472,10 +1472,10 @@ heap_fetch(Relation relation,
|
||||
if (valid)
|
||||
PredicateLockTuple(relation, tuple);
|
||||
|
||||
LockBuffer(buffer, BUFFER_LOCK_UNLOCK);
|
||||
|
||||
CheckForSerializableConflictOut(valid, relation, tuple, buffer);
|
||||
|
||||
LockBuffer(buffer, BUFFER_LOCK_UNLOCK);
|
||||
|
||||
if (valid)
|
||||
{
|
||||
/*
|
||||
|
Reference in New Issue
Block a user