diff --git a/src/backend/utils/time/tqual.c b/src/backend/utils/time/tqual.c index 4caef9ca25e..9b2f7bedc9b 100644 --- a/src/backend/utils/time/tqual.c +++ b/src/backend/utils/time/tqual.c @@ -853,7 +853,8 @@ HeapTupleSatisfiesDirty(HeapTupleHeader tuple, Snapshot snapshot, if (TransactionIdIsInProgress(HeapTupleHeaderGetXmax(tuple))) { - snapshot->xmax = HeapTupleHeaderGetXmax(tuple); + if (!(tuple->t_infomask & HEAP_IS_LOCKED)) + snapshot->xmax = HeapTupleHeaderGetXmax(tuple); return true; }