mirror of
https://github.com/postgres/postgres.git
synced 2025-06-22 02:52:08 +03:00
Convert misleading while loop into an if condition
This seems to be leftover from ea15e1867
and from when we used to evaluate
SRFs at each node.
Since there is an unconditional "return" at the end of the loop body, only
1 loop is ever possible, so we can just change this into an if condition.
There is no actual bug being fixed here so no back-patch. It seems fine to
just fix this anomaly in master only.
Author: Greg Nancarrow
Discussion: https://postgr.es/m/CAJcOf-d7T1q0az-D8evWXnsuBZjigT04WkV5hCAOEJQZRWy28w@mail.gmail.com
This commit is contained in:
@ -103,7 +103,7 @@ ExecResult(PlanState *pstate)
|
|||||||
* called, OR that we failed the constant qual check. Either way, now we
|
* called, OR that we failed the constant qual check. Either way, now we
|
||||||
* are through.
|
* are through.
|
||||||
*/
|
*/
|
||||||
while (!node->rs_done)
|
if (!node->rs_done)
|
||||||
{
|
{
|
||||||
outerPlan = outerPlanState(node);
|
outerPlan = outerPlanState(node);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user