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

Function table_tuple_fetch_row_version

src/include/access/tableam.h:1488–1503  ·  view source on GitHub ↗

* Fetch tuple at `tid` into `slot`, after doing a visibility test according to * `snapshot`. If a tuple was found and passed the visibility test, returns * true, false otherwise. * * See table_index_fetch_tuple's comment about what the difference between * these functions is. It is correct to use this function outside of index * entry->table tuple lookups. */

Source from the content-addressed store, hash-verified

1486 * entry->table tuple lookups.
1487 */
1488static inline bool
1489table_tuple_fetch_row_version(Relation rel,
1490 ItemPointer tid,
1491 Snapshot snapshot,
1492 TupleTableSlot *slot)
1493{
1494 /*
1495 * We don't expect direct calls to table_tuple_fetch_row_version with
1496 * valid CheckXidAlive for catalog or regular tables. See detailed
1497 * comments in xact.c where these variables are declared.
1498 */
1499 if (unlikely(TransactionIdIsValid(CheckXidAlive) && !bsysscan))
1500 elog(ERROR, "unexpected table_tuple_fetch_row_version call during logical decoding");
1501
1502 return rel->rd_tableam->tuple_fetch_row_version(rel, tid, snapshot, slot);
1503}
1504
1505/*
1506 * Verify that `tid` is a potentially valid tuple identifier. That doesn't

Callers 10

GetTupleForTriggerFunction · 0.85
AfterTriggerExecuteFunction · 0.85
ivm_visible_in_prestateFunction · 0.85
EvalPlanQualFetchRowMarkFunction · 0.85
ExecCheckTIDVisibleFunction · 0.85
ExecDeleteFunction · 0.85
ExecCrossPartitionUpdateFunction · 0.85
ExecUpdateFunction · 0.85
ExecModifyTableFunction · 0.85
TidNextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected