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

Function ExecStoreMinimalTuple

src/backend/executor/execTuples.c:1462–1479  ·  view source on GitHub ↗

* Store a minimal tuple into TTSOpsMinimalTuple type slot. * * If the target slot is not guaranteed to be TTSOpsMinimalTuple type slot, * use the, more expensive, ExecForceStoreMinimalTuple(). */

Source from the content-addressed store, hash-verified

1460 * use the, more expensive, ExecForceStoreMinimalTuple().
1461 */
1462TupleTableSlot *
1463ExecStoreMinimalTuple(MinimalTuple mtup,
1464 TupleTableSlot *slot,
1465 bool shouldFree)
1466{
1467 /*
1468 * sanity checks
1469 */
1470 Assert(mtup != NULL);
1471 Assert(slot != NULL);
1472 Assert(slot->tts_tupleDescriptor != NULL);
1473
1474 if (unlikely(!TTS_IS_MINIMALTUPLE(slot)))
1475 elog(ERROR, "trying to store a minimal tuple into wrong type of slot");
1476 tts_minimal_store_tuple(slot, mtup, shouldFree);
1477
1478 return slot;
1479}
1480
1481/*
1482 * Store a HeapTuple into any kind of slot, performing conversion if

Callers 15

tuplestore_gettupleslotFunction · 0.85
tuplesort_gettupleslotFunction · 0.85
retrieve_next_tupleFunction · 0.85
TupleHashTableMatchFunction · 0.85
execMotionSortedReceiverFunction · 0.85
tts_minimal_copyslotFunction · 0.85
ExecScanHashBucketFunction · 0.85

Calls 1

tts_minimal_store_tupleFunction · 0.85

Tested by

no test coverage detected