本节介绍heapam_tuple_delete和table_tuple_delete函数。 heapam_tuple_delete函数 //src/backend/access/heap/heapam_handler.c static T
本节介绍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);
}
--结束END--
本文标题: PostgreSQL源码学习--删除数据#1,2
本文链接: https://lsjlt.com/news/6560.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-10-23
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0