5050 * Portions Copyright (c) 1994, Regents of the University of California
5151 *
5252 * IDENTIFICATION
53- * $PostgreSQL: pgsql/src/backend/utils/time/tqual.c,v 1.116 2010/02/0804:33:54 tgl Exp $
53+ * $PostgreSQL: pgsql/src/backend/utils/time/tqual.c,v 1.117 2010/02/0814:10:21 momjian Exp $
5454 *
5555 *-------------------------------------------------------------------------
5656 */
@@ -91,7 +91,7 @@ static bool XidInMVCCSnapshot(TransactionId xid, Snapshot snapshot);
9191 * code in heapam.c relies on that!)
9292 *
9393 * Also, if we are cleaning up HEAP_MOVED_IN or HEAP_MOVED_OFF entries, then
94- * we can always set the hint bits, sinceold-style VACUUM FULL always used
94+ * we can always set the hint bits, sincepre-9.0 VACUUM FULL always used
9595 * synchronous commits and didn't move tuples that weren't previously
9696 * hinted. (This is not known by this subroutine, but is applied by its
9797 * callers.) Note: old-style VACUUM FULL is gone, but we have to keep this
@@ -167,6 +167,7 @@ HeapTupleSatisfiesSelf(HeapTupleHeader tuple, Snapshot snapshot, Buffer buffer)
167167if (tuple -> t_infomask & HEAP_XMIN_INVALID )
168168return false;
169169
170+ /* Used by pre-9.0 binary upgrades */
170171if (tuple -> t_infomask & HEAP_MOVED_OFF )
171172{
172173TransactionId xvac = HeapTupleHeaderGetXvac (tuple );
@@ -185,6 +186,7 @@ HeapTupleSatisfiesSelf(HeapTupleHeader tuple, Snapshot snapshot, Buffer buffer)
185186InvalidTransactionId );
186187}
187188}
189+ /* Used by pre-9.0 binary upgrades */
188190else if (tuple -> t_infomask & HEAP_MOVED_IN )
189191{
190192TransactionId xvac = HeapTupleHeaderGetXvac (tuple );
@@ -338,6 +340,7 @@ HeapTupleSatisfiesNow(HeapTupleHeader tuple, Snapshot snapshot, Buffer buffer)
338340if (tuple -> t_infomask & HEAP_XMIN_INVALID )
339341return false;
340342
343+ /* Used by pre-9.0 binary upgrades */
341344if (tuple -> t_infomask & HEAP_MOVED_OFF )
342345{
343346TransactionId xvac = HeapTupleHeaderGetXvac (tuple );
@@ -356,6 +359,7 @@ HeapTupleSatisfiesNow(HeapTupleHeader tuple, Snapshot snapshot, Buffer buffer)
356359InvalidTransactionId );
357360}
358361}
362+ /* Used by pre-9.0 binary upgrades */
359363else if (tuple -> t_infomask & HEAP_MOVED_IN )
360364{
361365TransactionId xvac = HeapTupleHeaderGetXvac (tuple );
@@ -502,6 +506,7 @@ HeapTupleSatisfiesToast(HeapTupleHeader tuple, Snapshot snapshot,
502506if (tuple -> t_infomask & HEAP_XMIN_INVALID )
503507return false;
504508
509+ /* Used by pre-9.0 binary upgrades */
505510if (tuple -> t_infomask & HEAP_MOVED_OFF )
506511{
507512TransactionId xvac = HeapTupleHeaderGetXvac (tuple );
@@ -520,6 +525,7 @@ HeapTupleSatisfiesToast(HeapTupleHeader tuple, Snapshot snapshot,
520525InvalidTransactionId );
521526}
522527}
528+ /* Used by pre-9.0 binary upgrades */
523529else if (tuple -> t_infomask & HEAP_MOVED_IN )
524530{
525531TransactionId xvac = HeapTupleHeaderGetXvac (tuple );
@@ -581,6 +587,7 @@ HeapTupleSatisfiesUpdate(HeapTupleHeader tuple, CommandId curcid,
581587if (tuple -> t_infomask & HEAP_XMIN_INVALID )
582588return HeapTupleInvisible ;
583589
590+ /* Used by pre-9.0 binary upgrades */
584591if (tuple -> t_infomask & HEAP_MOVED_OFF )
585592{
586593TransactionId xvac = HeapTupleHeaderGetXvac (tuple );
@@ -599,6 +606,7 @@ HeapTupleSatisfiesUpdate(HeapTupleHeader tuple, CommandId curcid,
599606InvalidTransactionId );
600607}
601608}
609+ /* Used by pre-9.0 binary upgrades */
602610else if (tuple -> t_infomask & HEAP_MOVED_IN )
603611{
604612TransactionId xvac = HeapTupleHeaderGetXvac (tuple );
@@ -748,6 +756,7 @@ HeapTupleSatisfiesDirty(HeapTupleHeader tuple, Snapshot snapshot,
748756if (tuple -> t_infomask & HEAP_XMIN_INVALID )
749757return false;
750758
759+ /* Used by pre-9.0 binary upgrades */
751760if (tuple -> t_infomask & HEAP_MOVED_OFF )
752761{
753762TransactionId xvac = HeapTupleHeaderGetXvac (tuple );
@@ -766,6 +775,7 @@ HeapTupleSatisfiesDirty(HeapTupleHeader tuple, Snapshot snapshot,
766775InvalidTransactionId );
767776}
768777}
778+ /* Used by pre-9.0 binary upgrades */
769779else if (tuple -> t_infomask & HEAP_MOVED_IN )
770780{
771781TransactionId xvac = HeapTupleHeaderGetXvac (tuple );
@@ -907,6 +917,7 @@ HeapTupleSatisfiesMVCC(HeapTupleHeader tuple, Snapshot snapshot,
907917if (tuple -> t_infomask & HEAP_XMIN_INVALID )
908918return false;
909919
920+ /* Used by pre-9.0 binary upgrades */
910921if (tuple -> t_infomask & HEAP_MOVED_OFF )
911922{
912923TransactionId xvac = HeapTupleHeaderGetXvac (tuple );
@@ -925,6 +936,7 @@ HeapTupleSatisfiesMVCC(HeapTupleHeader tuple, Snapshot snapshot,
925936InvalidTransactionId );
926937}
927938}
939+ /* Used by pre-9.0 binary upgrades */
928940else if (tuple -> t_infomask & HEAP_MOVED_IN )
929941{
930942TransactionId xvac = HeapTupleHeaderGetXvac (tuple );
@@ -1066,6 +1078,7 @@ HeapTupleSatisfiesVacuum(HeapTupleHeader tuple, TransactionId OldestXmin,
10661078{
10671079if (tuple -> t_infomask & HEAP_XMIN_INVALID )
10681080return HEAPTUPLE_DEAD ;
1081+ /* Used by pre-9.0 binary upgrades */
10691082else if (tuple -> t_infomask & HEAP_MOVED_OFF )
10701083{
10711084TransactionId xvac = HeapTupleHeaderGetXvac (tuple );
@@ -1083,6 +1096,7 @@ HeapTupleSatisfiesVacuum(HeapTupleHeader tuple, TransactionId OldestXmin,
10831096SetHintBits (tuple ,buffer ,HEAP_XMIN_COMMITTED ,
10841097InvalidTransactionId );
10851098}
1099+ /* Used by pre-9.0 binary upgrades */
10861100else if (tuple -> t_infomask & HEAP_MOVED_IN )
10871101{
10881102TransactionId xvac = HeapTupleHeaderGetXvac (tuple );