88 *
99 *
1010 * IDENTIFICATION
11- * $PostgreSQL: pgsql/src/backend/access/heap/heapam.c,v 1.183 2005/02 /2021:46:47 tgl Exp $
11+ * $PostgreSQL: pgsql/src/backend/access/heap/heapam.c,v 1.184 2005/03 /2023: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 ,
12701270ItemPointer ctid ,CommandId cid ,
12711271Snapshot crosscheck ,bool wait )
@@ -1275,7 +1275,7 @@ heap_delete(Relation relation, ItemPointer tid,
12751275HeapTupleData tp ;
12761276PageHeader dp ;
12771277Buffer buffer ;
1278- int result ;
1278+ HTSU_Result result ;
12791279
12801280Assert (ItemPointerIsValid (tid ));
12811281
@@ -1430,7 +1430,7 @@ void
14301430simple_heap_delete (Relation relation ,ItemPointer tid )
14311431{
14321432ItemPointerData ctid ;
1433- int result ;
1433+ HTSU_Result result ;
14341434
14351435result = 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 ,
14851485ItemPointer ctid ,CommandId cid ,
14861486Snapshot crosscheck ,bool wait )
@@ -1495,7 +1495,7 @@ heap_update(Relation relation, ItemPointer otid, HeapTuple newtup,
14951495already_marked ;
14961496Size newtupsize ,
14971497pagefree ;
1498- int result ;
1498+ HTSU_Result result ;
14991499
15001500Assert (ItemPointerIsValid (otid ));
15011501
@@ -1792,7 +1792,7 @@ void
17921792simple_heap_update (Relation relation ,ItemPointer otid ,HeapTuple tup )
17931793{
17941794ItemPointerData ctid ;
1795- int result ;
1795+ HTSU_Result result ;
17961796
17971797result = 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 ,
18271827CommandId cid )
18281828{
18291829TransactionId xid = GetCurrentTransactionId ();
18301830ItemPointer tid = & (tuple -> t_self );
18311831ItemId lp ;
18321832PageHeader dp ;
1833- int result ;
1833+ HTSU_Result result ;
18341834
18351835* buffer = ReadBuffer (relation ,ItemPointerGetBlockNumber (tid ));
18361836LockBuffer (* buffer ,BUFFER_LOCK_EXCLUSIVE );