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

Function ExecReScanDynamicSeqScan

src/backend/executor/nodeDynamicSeqscan.c:291–313  ·  view source on GitHub ↗

* ExecReScanDynamicSeqScan * Prepares the internal states for a rescan. */

Source from the content-addressed store, hash-verified

289 * Prepares the internal states for a rescan.
290 */
291void
292ExecReScanDynamicSeqScan(DynamicSeqScanState *node)
293{
294 DynamicSeqScanEndCurrentScan(node);
295
296 // reset partition internal state
297
298 /*
299 * If any PARAM_EXEC Params used in pruning expressions have changed, then
300 * we'd better unset the valid subplans so that they are reselected for
301 * the new parameter values.
302 */
303 if (node->as_prune_state &&
304 bms_overlap(node->ss.ps.chgParam,
305 node->as_prune_state->execparamids))
306 {
307 bms_free(node->as_valid_subplans);
308 node->as_valid_subplans = NULL;
309 }
310
311 node->whichPart = -1;
312
313}

Callers 1

ExecReScanFunction · 0.85

Calls 3

bms_overlapFunction · 0.85
bms_freeFunction · 0.85

Tested by

no test coverage detected