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

Commit9ac4299

Browse files
committed
HeapTupleHeaderAdjustCmax made the incorrect assumption that the raw
command id is the cmin, when it can in fact be a combo cid. That made rowsincorrectly invisible to a transaction where a tuple was deleted by multipleaborted subtransactions.Report and patch Karl Schnaitter. Back-patch to 8.3, where combo cids wasintroduced.
1 parent86ec73b commit9ac4299

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/utils/time/combocid.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* Portions Copyright (c) 1994, Regents of the University of California
3535
*
3636
* IDENTIFICATION
37-
* $PostgreSQL: pgsql/src/backend/utils/time/combocid.c,v 1.4 2008/01/0119:45:55 momjian Exp $
37+
* $PostgreSQL: pgsql/src/backend/utils/time/combocid.c,v 1.5 2008/09/0118:52:45 heikki Exp $
3838
*
3939
*-------------------------------------------------------------------------
4040
*/
@@ -155,7 +155,7 @@ HeapTupleHeaderAdjustCmax(HeapTupleHeader tup,
155155
if (!(tup->t_infomask&HEAP_XMIN_COMMITTED)&&
156156
TransactionIdIsCurrentTransactionId(HeapTupleHeaderGetXmin(tup)))
157157
{
158-
CommandIdcmin=HeapTupleHeaderGetRawCommandId(tup);
158+
CommandIdcmin=HeapTupleHeaderGetCmin(tup);
159159

160160
*cmax=GetComboCommandId(cmin,*cmax);
161161
*iscombo= true;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp