88 *
99 *
1010 * IDENTIFICATION
11- * $PostgreSQL: pgsql/src/backend/access/heap/heapam.c,v 1.183 2005/02 /20 21:46:47 tgl Exp $
11+ * $PostgreSQL: pgsql/src/backend/access/heap/heapam.c,v 1.184 2005/03 /20 23:40:23 neilc Exp $
1212 *
1313 *
1414 * INTERFACE ROUTINES
@@ -1265,7 +1265,7 @@ simple_heap_insert(Relation relation, HeapTuple tup)
12651265 * *ctid is set to the ctid link of the target tuple (possibly a later
12661266 * version of the row).
12671267 */
1268- int
1268+ HTSU_Result
12691269heap_delete (Relation relation , ItemPointer tid ,
12701270 ItemPointer ctid , CommandId cid ,
12711271 Snapshot crosscheck , bool wait )
@@ -1275,7 +1275,7 @@ heap_delete(Relation relation, ItemPointer tid,
12751275 HeapTupleData tp ;
12761276 PageHeader dp ;
12771277 Buffer buffer ;
1278- int result ;
1278+ HTSU_Result result ;
12791279
12801280 Assert (ItemPointerIsValid (tid ));
12811281
@@ -1430,7 +1430,7 @@ void
14301430simple_heap_delete (Relation relation , ItemPointer tid )
14311431{
14321432 ItemPointerData ctid ;
1433- int result ;
1433+ HTSU_Result result ;
14341434
14351435 result = heap_delete (relation , tid ,
14361436 & ctid ,
@@ -1480,7 +1480,7 @@ simple_heap_delete(Relation relation, ItemPointer tid)
14801480 * On success, newtup->t_self is set to the TID where the new tuple
14811481 * was inserted.
14821482 */
1483- int
1483+ HTSU_Result
14841484heap_update (Relation relation , ItemPointer otid , HeapTuple newtup ,
14851485 ItemPointer ctid , CommandId cid ,
14861486 Snapshot crosscheck , bool wait )
@@ -1495,7 +1495,7 @@ heap_update(Relation relation, ItemPointer otid, HeapTuple newtup,
14951495 already_marked ;
14961496 Size newtupsize ,
14971497 pagefree ;
1498- int result ;
1498+ HTSU_Result result ;
14991499
15001500 Assert (ItemPointerIsValid (otid ));
15011501
@@ -1792,7 +1792,7 @@ void
17921792simple_heap_update (Relation relation , ItemPointer otid , HeapTuple tup )
17931793{
17941794 ItemPointerData ctid ;
1795- int result ;
1795+ HTSU_Result result ;
17961796
17971797 result = heap_update (relation , otid , tup ,
17981798 & ctid ,
@@ -1822,15 +1822,15 @@ simple_heap_update(Relation relation, ItemPointer otid, HeapTuple tup)
18221822/*
18231823 * heap_mark4update - mark a tuple for update
18241824 */
1825- int
1825+ HTSU_Result
18261826heap_mark4update (Relation relation , HeapTuple tuple , Buffer * buffer ,
18271827 CommandId cid )
18281828{
18291829 TransactionId xid = GetCurrentTransactionId ();
18301830 ItemPointer tid = & (tuple -> t_self );
18311831 ItemId lp ;
18321832 PageHeader dp ;
1833- int result ;
1833+ HTSU_Result result ;
18341834
18351835 * buffer = ReadBuffer (relation , ItemPointerGetBlockNumber (tid ));
18361836 LockBuffer (* buffer , BUFFER_LOCK_EXCLUSIVE );
0 commit comments