pgsql: Avoid fetching from an already-terminated plan.

2021-09-09 Thread Tom Lane
Avoid fetching from an already-terminated plan. Some plan node types don't react well to being called again after they've already returned NULL. PortalRunSelect() has long dealt with this by calling the executor with NoMovementScanDirection if it sees that we've already run the portal to the end.

pgsql: Avoid fetching from an already-terminated plan.

2021-09-09 Thread Tom Lane
Avoid fetching from an already-terminated plan. Some plan node types don't react well to being called again after they've already returned NULL. PortalRunSelect() has long dealt with this by calling the executor with NoMovementScanDirection if it sees that we've already run the portal to the end.

pgsql: Avoid fetching from an already-terminated plan.

2021-09-09 Thread Tom Lane
Avoid fetching from an already-terminated plan. Some plan node types don't react well to being called again after they've already returned NULL. PortalRunSelect() has long dealt with this by calling the executor with NoMovementScanDirection if it sees that we've already run the portal to the end.

pgsql: Avoid fetching from an already-terminated plan.

2021-09-09 Thread Tom Lane
Avoid fetching from an already-terminated plan. Some plan node types don't react well to being called again after they've already returned NULL. PortalRunSelect() has long dealt with this by calling the executor with NoMovementScanDirection if it sees that we've already run the portal to the end.

pgsql: Avoid fetching from an already-terminated plan.

2021-09-09 Thread Tom Lane
Avoid fetching from an already-terminated plan. Some plan node types don't react well to being called again after they've already returned NULL. PortalRunSelect() has long dealt with this by calling the executor with NoMovementScanDirection if it sees that we've already run the portal to the end.