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

Function ExecEvalExprSwitchContext

src/include/executor/executor.h:373–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371 */
372#ifndef FRONTEND
373static inline Datum
374ExecEvalExprSwitchContext(ExprState *state,
375 ExprContext *econtext,
376 bool *isNull)
377{
378 Datum retDatum;
379 MemoryContext oldContext;
380
381 oldContext = MemoryContextSwitchTo(econtext->ecxt_per_tuple_memory);
382 retDatum = state->evalfunc(state, econtext, isNull);
383 MemoryContextSwitchTo(oldContext);
384 return retDatum;
385}
386#endif
387
388/*

Callers 15

compute_expr_statsFunction · 0.85
validateDomainConstraintFunction · 0.85
ExecuteCallStmtFunction · 0.85
EvaluateParamsFunction · 0.85
nextPartBoundFunction · 0.85
TidRangeEvalFunction · 0.85
ExecTupleSplitFunction · 0.85
tablesample_initFunction · 0.85
recompute_limitsFunction · 0.85

Calls 1

MemoryContextSwitchToFunction · 0.85

Tested by 1

operator_predicate_proofFunction · 0.68