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

Function ExecEagerFreeFunctionScan

src/backend/executor/nodeFunctionscan.c:761–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

759}
760
761static void
762ExecEagerFreeFunctionScan(FunctionScanState *node)
763{
764 int i;
765
766 /*
767 * Release slots and tuplestore resources
768 */
769 for (i = 0; i < node->nfuncs; i++)
770 {
771 FunctionScanPerFuncState *fs = &node->funcstates[i];
772
773 if (fs->func_slot)
774 ExecClearTuple(fs->func_slot);
775
776 if (fs->tstore != NULL)
777 {
778 tuplestore_end(node->funcstates[i].tstore);
779 fs->tstore = NULL;
780 }
781 }
782}
783
784void
785ExecSquelchFunctionScan(FunctionScanState *node, bool force)

Callers 4

FunctionNextFunction · 0.85
ExecEndFunctionScanFunction · 0.85
ExecSquelchFunctionScanFunction · 0.85

Calls 2

ExecClearTupleFunction · 0.85
tuplestore_endFunction · 0.85

Tested by

no test coverage detected