*** a/src/backend/storage/lmgr/predicate.c
--- b/src/backend/storage/lmgr/predicate.c
***************
*** 1669,1676 **** RegisterSerializableTransactionInt(Snapshot snapshot)
  			 othersxact != NULL;
  			 othersxact = NextPredXact(othersxact))
  		{
! 			if (!SxactIsOnFinishedList(othersxact) &&
! 				!SxactIsReadOnly(othersxact))
  			{
  				SetPossibleUnsafeConflict(sxact, othersxact);
  			}
--- 1676,1684 ----
  			 othersxact != NULL;
  			 othersxact = NextPredXact(othersxact))
  		{
! 			if (!SxactIsCommitted(othersxact)
! 				&& !SxactIsDoomed(othersxact)
! 				&& !SxactIsReadOnly(othersxact))
  			{
  				SetPossibleUnsafeConflict(sxact, othersxact);
  			}
