* ExecReScanDynamicSeqScan * Prepares the internal states for a rescan. */
| 289 | * Prepares the internal states for a rescan. |
| 290 | */ |
| 291 | void |
| 292 | ExecReScanDynamicSeqScan(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 | } |
no test coverage detected