Skip to content

Commit daee6ca

Browse files
committed
SELECT ... FOR UPDATE neglects duplicate key checking.
patches submitted by Hiroshi Inoue.
1 parent 0a77af6 commit daee6ca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/backend/utils/time/tqual.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/utils/time/tqual.c,v 1.35 2000/01/26 05:57:36 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/utils/time/tqual.c,v 1.35.2.1 2000/07/26 13:09:30 ishii Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -441,7 +441,11 @@ HeapTupleSatisfiesDirty(HeapTupleHeader tuple)
441441
}
442442

443443
if (TransactionIdIsCurrentTransactionId(tuple->t_xmax))
444+
{
445+
if (tuple->t_infomask & HEAP_MARKED_FOR_UPDATE)
446+
return true;
444447
return false;
448+
}
445449

446450
if (!TransactionIdDidCommit(tuple->t_xmax))
447451
{

0 commit comments

Comments
 (0)