96
96
* Portions Copyright (c) 1994-5, Regents of the University of California
97
97
*
98
98
* IDENTIFICATION
99
- * $PostgreSQL: pgsql/src/backend/access/heap/rewriteheap.c,v 1.8 2007/11/1521:14:32 momjian Exp $
99
+ * $PostgreSQL: pgsql/src/backend/access/heap/rewriteheap.c,v 1.9 2007/11/1522:25:15 momjian Exp $
100
100
*
101
101
*-------------------------------------------------------------------------
102
102
*/
@@ -129,7 +129,7 @@ typedef struct RewriteStateData
129
129
* them */
130
130
HTAB * rs_unresolved_tups ;/* unmatched A tuples */
131
131
HTAB * rs_old_new_tid_map ;/* unmatched B tuples */
132
- }RewriteStateData ;
132
+ }RewriteStateData ;
133
133
134
134
/*
135
135
* The lookup keys for the hash tables are tuple TID and xmin (we must check
@@ -141,7 +141,7 @@ typedef struct
141
141
{
142
142
TransactionId xmin ;/* tuple xmin */
143
143
ItemPointerData tid ;/* tuple location in old heap */
144
- }TidHashKey ;
144
+ }TidHashKey ;
145
145
146
146
/*
147
147
* Entry structures for the hash tables
@@ -151,15 +151,15 @@ typedef struct
151
151
TidHashKey key ;/* expected xmin/old location of B tuple */
152
152
ItemPointerData old_tid ;/* A's location in the old heap */
153
153
HeapTuple tuple ;/* A's tuple contents */
154
- }UnresolvedTupData ;
154
+ }UnresolvedTupData ;
155
155
156
156
typedef UnresolvedTupData * UnresolvedTup ;
157
157
158
158
typedef struct
159
159
{
160
160
TidHashKey key ;/* actual xmin/old location of B tuple */
161
161
ItemPointerData new_tid ;/* where we put it in the new heap */
162
- }OldToNewMappingData ;
162
+ }OldToNewMappingData ;
163
163
164
164
typedef OldToNewMappingData * OldToNewMapping ;
165
165
@@ -425,8 +425,8 @@ rewrite_heap_tuple(RewriteState state,
425
425
* If the tuple is the updated version of a row, and the prior version
426
426
* wouldn't be DEAD yet, then we need to either resolve the prior
427
427
* version (if it's waiting in rs_unresolved_tups), or make an entry
428
- * in rs_old_new_tid_map (so we can resolve it when we do see it).
429
- *The previous tuple's xmax would equal this one's xmin, so it's
428
+ * in rs_old_new_tid_map (so we can resolve it when we do see it). The
429
+ * previous tuple's xmax would equal this one's xmin, so it's
430
430
* RECENTLY_DEAD if and only if the xmin is not before OldestXmin.
431
431
*/
432
432
if ((new_tuple -> t_data -> t_infomask & HEAP_UPDATED )&&