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

Function ExecStoreHeapTuple

src/backend/executor/execTuples.c:1368–1387  ·  view source on GitHub ↗

-------------------------------- * ExecStoreHeapTuple * * This function is used to store an on-the-fly physical tuple into a specified * slot in the tuple table. * * tuple: tuple to store * slot: TTSOpsHeapTuple type slot to store it in * shouldFree: true if ExecClearTuple should pfree() the tuple * when done with it * * shouldFree is normally set 'true' for tuples constructed

Source from the content-addressed store, hash-verified

1366 * --------------------------------
1367 */
1368TupleTableSlot *
1369ExecStoreHeapTuple(HeapTuple tuple,
1370 TupleTableSlot *slot,
1371 bool shouldFree)
1372{
1373 /*
1374 * sanity checks
1375 */
1376 Assert(tuple != NULL);
1377 Assert(slot != NULL);
1378 Assert(slot->tts_tupleDescriptor != NULL);
1379
1380 if (unlikely(!TTS_IS_HEAPTUPLE(slot)))
1381 elog(ERROR, "trying to store a heap tuple into wrong type of slot");
1382 tts_heap_store_tuple(slot, tuple, shouldFree);
1383
1384 slot->tts_tableOid = tuple->t_tableOid;
1385
1386 return slot;
1387}
1388
1389/* --------------------------------
1390 * ExecStoreBufferHeapTuple

Callers 14

get_returning_dataFunction · 0.85
compute_expr_statsFunction · 0.85
make_build_dataFunction · 0.85
comparetup_clusterFunction · 0.85
compute_index_statsFunction · 0.85
ExecuteCallStmtFunction · 0.85
setop_retrieve_directFunction · 0.85
tts_heap_copyslotFunction · 0.85
ExecForceStoreHeapTupleFunction · 0.85
TableFunctionNextFunction · 0.85

Calls 1

tts_heap_store_tupleFunction · 0.85

Tested by

no test coverage detected