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

Function ExecSetExecProcNode

src/backend/executor/execProcnode.c:579–590  ·  view source on GitHub ↗

* If a node wants to change its ExecProcNode function after ExecInitNode() * has finished, it should do so with this function. That way any wrapper * functions can be reinstalled, without the node having to know how that * works. */

Source from the content-addressed store, hash-verified

577 * works.
578 */
579void
580ExecSetExecProcNode(PlanState *node, ExecProcNodeMtd function)
581{
582 /*
583 * Add a wrapper around the ExecProcNode callback that checks stack depth
584 * during the first execution and maybe adds an instrumentation wrapper.
585 * When the callback is changed after execution has already begun that
586 * means we'll superfluously execute ExecProcNodeFirst, but that seems ok.
587 */
588 node->ExecProcNodeReal = function;
589 node->ExecProcNode = ExecProcNodeFirst;
590}
591
592
593/*

Callers 3

ExecInitNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected