1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-18 17:42:25 +03:00

SELECT ... FOR UPDATE neglects duplicate key checking.

patches submitted by Hiroshi Inoue.
This commit is contained in:
Tatsuo Ishii
2000-07-26 13:09:30 +00:00
parent 0a77af6727
commit daee6ca585

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/time/tqual.c,v 1.35 2000/01/26 05:57:36 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/time/tqual.c,v 1.35.2.1 2000/07/26 13:09:30 ishii Exp $
*
*-------------------------------------------------------------------------
*/
@ -441,7 +441,11 @@ HeapTupleSatisfiesDirty(HeapTupleHeader tuple)
}
if (TransactionIdIsCurrentTransactionId(tuple->t_xmax))
{
if (tuple->t_infomask & HEAP_MARKED_FOR_UPDATE)
return true;
return false;
}
if (!TransactionIdDidCommit(tuple->t_xmax))
{