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

Function ExecPrepareCheck

src/backend/executor/execExpr.c:808–823  ·  view source on GitHub ↗

* ExecPrepareCheck -- initialize check constraint for execution outside a * normal Plan tree context. * * See ExecPrepareExpr() and ExecInitCheck() for details. */

Source from the content-addressed store, hash-verified

806 * See ExecPrepareExpr() and ExecInitCheck() for details.
807 */
808ExprState *
809ExecPrepareCheck(List *qual, EState *estate)
810{
811 ExprState *result;
812 MemoryContext oldcontext;
813
814 oldcontext = MemoryContextSwitchTo(estate->es_query_cxt);
815
816 qual = (List *) expression_planner((Expr *) qual);
817
818 result = ExecInitCheck(qual, NULL);
819
820 MemoryContextSwitchTo(oldcontext);
821
822 return result;
823}
824
825/*
826 * Call ExecPrepareExpr() on each member of a list of Exprs, and return

Callers 2

ExecPartitionCheckFunction · 0.85
ExternalPartitionCheckFunction · 0.85

Calls 3

MemoryContextSwitchToFunction · 0.85
expression_plannerFunction · 0.85
ExecInitCheckFunction · 0.85

Tested by

no test coverage detected