Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdaee6ca

Browse files
committed
SELECT ... FOR UPDATE neglects duplicate key checking.
patches submitted by Hiroshi Inoue.
1 parent0a77af6 commitdaee6ca

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/2605:57:36 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/utils/time/tqual.c,v 1.35.2.1 2000/07/2613: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)

[8]ページ先頭

©2009-2025 Movatter.jp