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

Function ExecDropSingleTupleTableSlot

src/backend/executor/execTuples.c:1270–1287  ·  view source on GitHub ↗

-------------------------------- * ExecDropSingleTupleTableSlot * * Release a TupleTableSlot made with MakeSingleTupleTableSlot. * DON'T use this on a slot that's part of a tuple table list! * -------------------------------- */

Source from the content-addressed store, hash-verified

1268 * --------------------------------
1269 */
1270void
1271ExecDropSingleTupleTableSlot(TupleTableSlot *slot)
1272{
1273 /* This should match ExecResetTupleTable's processing of one slot */
1274 Assert(IsA(slot, TupleTableSlot));
1275 ExecClearTuple(slot);
1276 slot->tts_ops->release(slot);
1277 if (slot->tts_tupleDescriptor)
1278 ReleaseTupleDesc(slot->tts_tupleDescriptor);
1279 if (!TTS_FIXED(slot))
1280 {
1281 if (slot->tts_values)
1282 pfree(slot->tts_values);
1283 if (slot->tts_isnull)
1284 pfree(slot->tts_isnull);
1285 }
1286 pfree(slot);
1287}
1288
1289
1290/* ----------------------------------------------------------------

Callers 15

DeleteTestTupleTableSlotFunction · 0.85
EndMethod · 0.85
UpdateStatsInAuxTableMethod · 0.85
DeleteTupleSlotMethod · 0.85
TEST_FFunction · 0.85
DeleteTupleSlotMethod · 0.85
IndexBuildRangeScanMethod · 0.85
ClusteringMethod · 0.85
ClusteringMethod · 0.85
ClusteringMethod · 0.85
CPaxCopyAllTuplesFunction · 0.85

Calls 3

ExecClearTupleFunction · 0.85
pfreeFunction · 0.50
releaseMethod · 0.45

Tested by 4

DeleteTestTupleTableSlotFunction · 0.68
DeleteTupleSlotMethod · 0.68
TEST_FFunction · 0.68
DeleteTupleSlotMethod · 0.68