diff --git a/src/backend/utils/time/tqual.c b/src/backend/utils/time/tqual.c
new file mode 100644
index da2ce18..0c72115
*** a/src/backend/utils/time/tqual.c
--- b/src/backend/utils/time/tqual.c
*************** HeapTupleSatisfiesDirty(HeapTuple htup,
*** 1012,1018 ****
  
  	if (TransactionIdIsInProgress(HeapTupleHeaderGetRawXmax(tuple)))
  	{
! 		snapshot->xmax = HeapTupleHeaderGetRawXmax(tuple);
  		return true;
  	}
  
--- 1012,1019 ----
  
  	if (TransactionIdIsInProgress(HeapTupleHeaderGetRawXmax(tuple)))
  	{
! 		if (!HEAP_XMAX_IS_LOCKED_ONLY(tuple->t_infomask))
! 			snapshot->xmax = HeapTupleHeaderGetRawXmax(tuple);
  		return true;
  	}
  
