|
7 | 7 | * |
8 | 8 | * |
9 | 9 | * IDENTIFICATION |
10 | | - * $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.19 1997/09/08 21:40:57 momjian Exp $ |
| 10 | + * $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.20 1997/09/18 14:19:30 momjian Exp $ |
11 | 11 | * |
12 | 12 | * |
13 | 13 | * INTERFACE ROUTINES |
@@ -429,8 +429,9 @@ heapgettup(Relation relation, |
429 | 429 | *if current tuple qualifies, return it. |
430 | 430 | * ---------------- |
431 | 431 | */ |
432 | | -if ((rtup=heap_tuple_satisfies(lpp,relation,*b, (PageHeader)dp, |
433 | | -timeQual,nkeys,key))!=NULL) |
| 432 | +HeapTupleSatisfies(lpp,relation,*b, (PageHeader)dp, |
| 433 | +timeQual,nkeys,key,rtup); |
| 434 | +if (rtup!=NULL) |
434 | 435 | { |
435 | 436 | ItemPointeriptr=&(rtup->t_ctid); |
436 | 437 |
|
@@ -1092,8 +1093,8 @@ heap_fetch(Relation relation, |
1092 | 1093 | * ---------------- |
1093 | 1094 | */ |
1094 | 1095 |
|
1095 | | -tuple=heap_tuple_satisfies(lp,relation,buffer,dp, |
1096 | | -timeQual,0, (ScanKey)NULL); |
| 1096 | +HeapTupleSatisfies(lp,relation,buffer,dp, |
| 1097 | +timeQual,0, (ScanKey)NULL,tuple); |
1097 | 1098 |
|
1098 | 1099 | if (tuple==NULL) |
1099 | 1100 | { |
@@ -1257,8 +1258,9 @@ heap_delete(Relation relation, ItemPointer tid) |
1257 | 1258 | *check that we're deleteing a valid item |
1258 | 1259 | * ---------------- |
1259 | 1260 | */ |
1260 | | -if (!(tp=heap_tuple_satisfies(lp,relation,b,dp, |
1261 | | -NowTimeQual,0, (ScanKey)NULL))) |
| 1261 | +HeapTupleSatisfies(lp,relation,b,dp, |
| 1262 | +NowTimeQual,0, (ScanKey)NULL,tp); |
| 1263 | +if (!tp) |
1262 | 1264 | { |
1263 | 1265 |
|
1264 | 1266 | /* XXX call something else */ |
@@ -1317,7 +1319,8 @@ heap_replace(Relation relation, ItemPointer otid, HeapTuple tup) |
1317 | 1319 | HeapTupletp; |
1318 | 1320 | Pagedp; |
1319 | 1321 | Bufferbuffer; |
1320 | | - |
| 1322 | +HeapTupletuple; |
| 1323 | + |
1321 | 1324 | /* ---------------- |
1322 | 1325 | *increment access statistics |
1323 | 1326 | * ---------------- |
@@ -1388,13 +1391,15 @@ heap_replace(Relation relation, ItemPointer otid, HeapTuple tup) |
1388 | 1391 | * xact, we only want to flag the 'non-functional' NOTICE. -mer |
1389 | 1392 | * ---------------- |
1390 | 1393 | */ |
1391 | | -if (!heap_tuple_satisfies(lp, |
1392 | | -relation, |
1393 | | -buffer, |
1394 | | - (PageHeader)dp, |
1395 | | -NowTimeQual, |
1396 | | -0, |
1397 | | - (ScanKey)NULL)) |
| 1394 | +HeapTupleSatisfies(lp, |
| 1395 | +relation, |
| 1396 | +buffer, |
| 1397 | + (PageHeader)dp, |
| 1398 | +NowTimeQual, |
| 1399 | +0, |
| 1400 | + (ScanKey)NULL, |
| 1401 | +tuple); |
| 1402 | +if (!tuple) |
1398 | 1403 | { |
1399 | 1404 | ReleaseBuffer(buffer); |
1400 | 1405 | elog(WARN,"heap_replace: (am)invalid otid"); |
|