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

Function ExecEvalFuncExprFusage

src/backend/executor/execExprInterp.c:2429–2445  ·  view source on GitHub ↗

* Evaluate EEOP_FUNCEXPR_FUSAGE */

Source from the content-addressed store, hash-verified

2427 * Evaluate EEOP_FUNCEXPR_FUSAGE
2428 */
2429void
2430ExecEvalFuncExprFusage(ExprState *state, ExprEvalStep *op,
2431 ExprContext *econtext)
2432{
2433 FunctionCallInfo fcinfo = op->d.func.fcinfo_data;
2434 PgStat_FunctionCallUsage fcusage;
2435 Datum d;
2436
2437 pgstat_init_function_usage(fcinfo, &fcusage);
2438
2439 fcinfo->isnull = false;
2440 d = op->d.func.fn_addr(fcinfo);
2441 *op->resvalue = d;
2442 *op->resnull = fcinfo->isnull;
2443
2444 pgstat_end_function_usage(&fcusage, true);
2445}
2446
2447/*
2448 * Evaluate EEOP_FUNCEXPR_STRICT_FUSAGE

Callers 1

ExecInterpExprFunction · 0.85

Calls 2

Tested by

no test coverage detected