| 566 | |
| 567 | |
| 568 | void |
| 569 | ExecReScanLimit(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 | } |
no test coverage detected