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

Function ExecCheckTIDVisible

src/backend/executor/nodeModifyTable.c:303–319  ·  view source on GitHub ↗

* ExecCheckTIDVisible -- convenience variant of ExecCheckTupleVisible() */

Source from the content-addressed store, hash-verified

301 * ExecCheckTIDVisible -- convenience variant of ExecCheckTupleVisible()
302 */
303static void
304ExecCheckTIDVisible(EState *estate,
305 ResultRelInfo *relinfo,
306 ItemPointer tid,
307 TupleTableSlot *tempSlot)
308{
309 Relation rel = relinfo->ri_RelationDesc;
310
311 /* Redundantly check isolation level */
312 if (!IsolationUsesXactSnapshot())
313 return;
314
315 if (!table_tuple_fetch_row_version(rel, tid, SnapshotAny, tempSlot))
316 elog(ERROR, "failed to fetch conflicting tuple for ON CONFLICT");
317 ExecCheckTupleVisible(estate, rel, tempSlot);
318 ExecClearTuple(tempSlot);
319}
320
321/*
322 * Compute stored generated columns for a tuple

Callers 1

ExecInsertFunction · 0.85

Calls 3

ExecCheckTupleVisibleFunction · 0.85
ExecClearTupleFunction · 0.85

Tested by

no test coverage detected