MCPcopy Create free account
hub / github.com/apache/cloudberry / table_tuple_delete

Function table_tuple_delete

src/include/access/tableam.h:1691–1699  ·  view source on GitHub ↗

* Delete a tuple. * * NB: do not call this directly unless prepared to deal with * concurrent-update conditions. Use simple_table_tuple_delete instead. * * Input parameters: * relation - table to be modified (caller must hold suitable lock) * tid - TID of tuple to be deleted * cid - delete command ID (used for visibility test, and stored into * cmax if successful) * crosscheck - if not

Source from the content-addressed store, hash-verified

1689 * struct TM_FailureData for additional info.
1690 */
1691static inline TM_Result
1692table_tuple_delete(Relation rel, ItemPointer tid, CommandId cid,
1693 Snapshot snapshot, Snapshot crosscheck, bool wait,
1694 TM_FailureData *tmfd, bool changingPart)
1695{
1696 return rel->rd_tableam->tuple_delete(rel, tid, cid,
1697 snapshot, crosscheck,
1698 wait, tmfd, changingPart);
1699}
1700
1701/*
1702 * Update a tuple.

Callers 2

ExecDeleteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected