* 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
| 1689 | * struct TM_FailureData for additional info. |
| 1690 | */ |
| 1691 | static inline TM_Result |
| 1692 | table_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. |
no outgoing calls
no test coverage detected