You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Fix calculation of plan node extParams to account for the possibility that one
initPlan sets a parameter for another. This could not (I think) happen before8.1, but it's possible now because the initPlans generated by MIN/MAXoptimization might themselves use initPlans. We attach those initPlans assiblings of the MIN/MAX ones, not children, to avoid duplicate computationwhen multiple MIN/MAX aggregates are present; so this leads to the case of aninitPlan needing the result of a sibling initPlan, which is not possible withordinary query nesting. Hadn't been noticed because in most contexts havingtoo much stuff listed in extParam is fairly harmless. Fixes "plan should notreference subplan's variable" bug reported by Catalin Pitis.