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

Function ExecReScanForeignScan

src/backend/executor/nodeForeignscan.c:344–369  ·  view source on GitHub ↗

---------------------------------------------------------------- * ExecReScanForeignScan * * Rescans the relation. * ---------------------------------------------------------------- */

Source from the content-addressed store, hash-verified

342 * ----------------------------------------------------------------
343 */
344void
345ExecReScanForeignScan(ForeignScanState *node)
346{
347 ForeignScan *plan = (ForeignScan *) node->ss.ps.plan;
348 EState *estate = node->ss.ps.state;
349 PlanState *outerPlan = outerPlanState(node);
350
351 /*
352 * Ignore direct modifications when EvalPlanQual is active --- they are
353 * irrelevant for EvalPlanQual rechecking
354 */
355 if (estate->es_epq_active != NULL && plan->operation != CMD_SELECT)
356 return;
357
358 node->fdwroutine->ReScanForeignScan(node);
359
360 /*
361 * If chgParam of subnode is not null then plan will be re-scanned by
362 * first ExecProcNode. outerPlan may also be NULL, in which case there is
363 * nothing to rescan at all.
364 */
365 if (outerPlan != NULL && outerPlan->chgParam == NULL)
366 ExecReScan(outerPlan);
367
368 ExecScanReScan(&node->ss);
369}
370
371/* ----------------------------------------------------------------
372 * ExecForeignScanEstimate

Callers 1

ExecReScanFunction · 0.85

Calls 2

ExecReScanFunction · 0.85
ExecScanReScanFunction · 0.85

Tested by

no test coverage detected