mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 10:30:33 +03:00 
			
		
		
		
	TupleUpdatedByCurXactAndCmd () changed due to
Fix very old bug which made tuples changed/inserted by a commnd visible to command itself (so we had multiple update of updated tuples, etc).
This commit is contained in:
		| @@ -7,7 +7,7 @@ | ||||
|  * | ||||
|  * | ||||
|  * IDENTIFICATION | ||||
|  *    $Header: /cvsroot/pgsql/src/backend/access/common/Attic/heapvalid.c,v 1.15 1997/08/26 23:31:22 momjian Exp $ | ||||
|  *    $Header: /cvsroot/pgsql/src/backend/access/common/Attic/heapvalid.c,v 1.16 1997/08/29 09:12:20 vadim Exp $ | ||||
|  * | ||||
|  *------------------------------------------------------------------------- | ||||
|  */ | ||||
| @@ -145,7 +145,7 @@ TupleUpdatedByCurXactAndCmd(HeapTuple t) | ||||
| { | ||||
|     if (TransactionIdEquals(t->t_xmax, | ||||
| 			    GetCurrentTransactionId()) && | ||||
| 	t->t_cmax == GetCurrentCommandId()) | ||||
| 	CommandIdGEScanCommandId (t->t_cmax)) | ||||
| 	return true; | ||||
|      | ||||
|     return false; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user