mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-28 11:55:03 +03:00 
			
		
		
		
	There's a small window wherein a transaction is committed but not yet
on the finished list, and we shouldn't flag it as a potential conflict if so. We can also skip adding a doomed transaction to the list of possible conflicts because we know it won't commit. Dan Ports and Kevin Grittner.
This commit is contained in:
		| @@ -1677,8 +1677,9 @@ RegisterSerializableTransactionInt(Snapshot snapshot) | ||||
| 			 othersxact != NULL; | ||||
| 			 othersxact = NextPredXact(othersxact)) | ||||
| 		{ | ||||
| 			if (!SxactIsOnFinishedList(othersxact) && | ||||
| 				!SxactIsReadOnly(othersxact)) | ||||
| 			if (!SxactIsCommitted(othersxact) | ||||
| 				&& !SxactIsDoomed(othersxact) | ||||
| 				&& !SxactIsReadOnly(othersxact)) | ||||
| 			{ | ||||
| 				SetPossibleUnsafeConflict(sxact, othersxact); | ||||
| 			} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user