本节介绍heapam_tuple_delete和table_tuple_delete函数。
//src/backend/access/heap/heapam_handler.c
static TM_Result
heapam_tuple_delete(Relation relation, ItemPointer tid, CommandId cid,
Snapshot snapshot, Snapshot crosscheck, bool wait,
TM_FailureData *tmfd, bool changingPart)
{
return heap_delete(relation, tid, cid, crosscheck, wait, tmfd, changingPart);
}
//src/backend/access/heap/heapam_handler.c
static inline TM_Result
table_tuple_delete(Relation rel, ItemPointer tid, CommandId cid,
Snapshot snapshot, Snapshot crosscheck, bool wait,
TM_FailureData *tmfd, bool changingPart)
{
return rel->rd_tableam->tuple_delete(rel, tid, cid,
snapshot, crosscheck,
wait, tmfd, changingPart);
}