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

Function ReScanExprContext

src/backend/executor/execUtils.c:494–501  ·  view source on GitHub ↗

* ReScanExprContext * * Reset an expression context in preparation for a rescan of its * plan node. This requires calling any registered shutdown callbacks, * since any partially complete set-returning-functions must be canceled. * * Note we make no assumption about the caller's memory context. */

Source from the content-addressed store, hash-verified

492 * Note we make no assumption about the caller's memory context.
493 */
494void
495ReScanExprContext(ExprContext *econtext)
496{
497 /* Call any registered callbacks */
498 ShutdownExprContext(econtext, true);
499 /* And clean up the memory used */
500 MemoryContextReset(econtext->ecxt_per_tuple_memory);
501}
502
503/*
504 * Build a per-output-tuple ExprContext for an EState.

Callers 9

domain_check_inputFunction · 0.85
ExecReScanFunction · 0.85
agg_retrieve_directFunction · 0.85
agg_refill_hash_tableFunction · 0.85
agg_retrieve_hash_tableFunction · 0.85
ExecEndAggFunction · 0.85
ExecReScanAggFunction · 0.85
ExecEagerFreeAggFunction · 0.85
ValuesNextFunction · 0.85

Calls 2

ShutdownExprContextFunction · 0.85
MemoryContextResetFunction · 0.85

Tested by

no test coverage detected