Commit d1406f1b authored by Hiroshi Inoue's avatar Hiroshi Inoue

Change heap_get_latest_tid() so that a transaction can

see changes made by the transaction itself.
parent 936afc8a
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.132 2002/03/26 19:15:11 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.133 2002/05/01 01:23:37 inoue Exp $
* *
* *
* INTERFACE ROUTINES * INTERFACE ROUTINES
...@@ -1067,7 +1067,7 @@ heap_get_latest_tid(Relation relation, ...@@ -1067,7 +1067,7 @@ heap_get_latest_tid(Relation relation,
snapshot, 0, (ScanKey) NULL); snapshot, 0, (ScanKey) NULL);
linkend = true; linkend = true;
if ((t_data->t_infomask & HEAP_XMAX_COMMITTED) && if ((t_data->t_infomask & HEAP_XMIN_COMMITTED) != 0 &&
!ItemPointerEquals(tid, &ctid)) !ItemPointerEquals(tid, &ctid))
linkend = false; linkend = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment