Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 448332a

Browse files
committed
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).
1 parent d8933d5 commit 448332a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/access/common/heapvalid.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/common/Attic/heapvalid.c,v 1.15 1997/08/26 23:31:22 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/common/Attic/heapvalid.c,v 1.16 1997/08/29 09:12:20 vadim Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -145,7 +145,7 @@ TupleUpdatedByCurXactAndCmd(HeapTuple t)
145145
{
146146
if (TransactionIdEquals(t->t_xmax,
147147
GetCurrentTransactionId()) &&
148-
t->t_cmax == GetCurrentCommandId())
148+
CommandIdGEScanCommandId (t->t_cmax))
149149
return true;
150150

151151
return false;

0 commit comments

Comments
 (0)