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

Function ExecEndTidRangeScan

src/backend/executor/nodeTidrangescan.c:322–341  ·  view source on GitHub ↗

---------------------------------------------------------------- * ExecEndTidRangeScan * * Releases any storage allocated through C routines. * Returns nothing. * ---------------------------------------------------------------- */

Source from the content-addressed store, hash-verified

320 * ----------------------------------------------------------------
321 */
322void
323ExecEndTidRangeScan(TidRangeScanState *node)
324{
325 TableScanDesc scan = node->ss.ss_currentScanDesc;
326
327 if (scan != NULL)
328 table_endscan(scan);
329
330 /*
331 * Free the exprcontext
332 */
333 ExecFreeExprContext(&node->ss.ps);
334
335 /*
336 * clear out tuple table slots
337 */
338 if (node->ss.ps.ps_ResultTupleSlot)
339 ExecClearTuple(node->ss.ps.ps_ResultTupleSlot);
340 ExecClearTuple(node->ss.ss_ScanTupleSlot);
341}
342
343/* ----------------------------------------------------------------
344 * ExecInitTidRangeScan

Callers 1

ExecEndNodeFunction · 0.85

Calls 3

table_endscanFunction · 0.85
ExecFreeExprContextFunction · 0.85
ExecClearTupleFunction · 0.85

Tested by

no test coverage detected