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

Function ExecReScanLimit

src/backend/executor/nodeLimit.c:568–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

566
567
568void
569ExecReScanLimit(LimitState *node)
570{
571 /*
572 * Recompute limit/offset in case parameters changed, and reset the state
573 * machine. We must do this before rescanning our child node, in case
574 * it's a Sort that we are passing the parameters down to.
575 */
576 recompute_limits(node);
577
578 /*
579 * if chgParam of subnode is not null then plan will be re-scanned by
580 * first ExecProcNode.
581 */
582 if (node->ps.lefttree->chgParam == NULL)
583 ExecReScan(node->ps.lefttree);
584}

Callers 1

ExecReScanFunction · 0.85

Calls 2

recompute_limitsFunction · 0.85
ExecReScanFunction · 0.85

Tested by

no test coverage detected