Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6beba21

Browse files
committedNov 27, 1998
New HeapTuple structure/interface.
1 parent 2435c7d commit 6beba21

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+835
-851
lines changed
 

‎src/backend/access/common/heapvalid.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/common/Attic/heapvalid.c,v 1.21 1997/09/22 03:58:32 vadim Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/common/Attic/heapvalid.c,v 1.22 1998/11/27 19:51:28 vadim Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -25,9 +25,9 @@
2525
bool
2626
TupleUpdatedByCurXactAndCmd(HeapTuple t)
2727
{
28-
if (TransactionIdEquals(t->t_xmax,
28+
if (TransactionIdEquals(t->t_data->t_xmax,
2929
GetCurrentTransactionId()) &&
30-
CommandIdGEScanCommandId(t->t_cmax))
30+
CommandIdGEScanCommandId(t->t_data->t_cmax))
3131
return true;
3232

3333
return false;

‎src/backend/access/common/printtup.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/common/printtup.c,v 1.35 1998/09/01 04:26:40 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/common/printtup.c,v 1.36 1998/11/27 19:51:28 vadim Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -100,7 +100,7 @@ printtup(HeapTuple tuple, TupleDesc typeinfo)
100100
*/
101101
j = 0;
102102
k = 1 << 7;
103-
for (i = 0; i < tuple->t_natts;)
103+
for (i = 0; i < tuple->t_data->t_natts;)
104104
{
105105
i++; /* heap_getattr is a macro, so no
106106
* increment */
@@ -122,7 +122,7 @@ printtup(HeapTuple tuple, TupleDesc typeinfo)
122122
* send the attributes of this tuple
123123
* ----------------
124124
*/
125-
for (i = 0; i < tuple->t_natts; ++i)
125+
for (i = 0; i < tuple->t_data->t_natts; ++i)
126126
{
127127
attr = heap_getattr(tuple, i + 1, typeinfo, &isnull);
128128
if (isnull)
@@ -204,7 +204,7 @@ debugtup(HeapTuple tuple, TupleDesc typeinfo)
204204
bool isnull;
205205
Oid typoutput;
206206

207-
for (i = 0; i < tuple->t_natts; ++i)
207+
for (i = 0; i < tuple->t_data->t_natts; ++i)
208208
{
209209
attr = heap_getattr(tuple, i + 1, typeinfo, &isnull);
210210
typoutput = typtoout((Oid) typeinfo->attrs[i]->atttypid);
@@ -251,7 +251,7 @@ printtup_internal(HeapTuple tuple, TupleDesc typeinfo)
251251
*/
252252
j = 0;
253253
k = 1 << 7;
254-
for (i = 0; i < tuple->t_natts;)
254+
for (i = 0; i < tuple->t_data->t_natts;)
255255
{
256256
i++; /* heap_getattr is a macro, so no
257257
* increment */
@@ -274,9 +274,9 @@ printtup_internal(HeapTuple tuple, TupleDesc typeinfo)
274274
* ----------------
275275
*/
276276
#ifdef IPORTAL_DEBUG
277-
fprintf(stderr, "sending tuple with %d atts\n", tuple->t_natts);
277+
fprintf(stderr, "sending tuple with %d atts\n", tuple->t_data->t_natts);
278278
#endif
279-
for (i = 0; i < tuple->t_natts; ++i)
279+
for (i = 0; i < tuple->t_data->t_natts; ++i)
280280
{
281281
int32 len = typeinfo->attrs[i]->attlen;
282282

There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Failed to load comments.