File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -815,6 +815,8 @@ ExecShutdownNode(PlanState *node)
815
815
if (node == NULL )
816
816
return false;
817
817
818
+ planstate_tree_walker (node , ExecShutdownNode , NULL );
819
+
818
820
switch (nodeTag (node ))
819
821
{
820
822
case T_GatherState :
@@ -824,5 +826,5 @@ ExecShutdownNode(PlanState *node)
824
826
break ;
825
827
}
826
828
827
- return planstate_tree_walker ( node , ExecShutdownNode , NULL ) ;
829
+ return false ;
828
830
}
Original file line number Diff line number Diff line change @@ -229,10 +229,10 @@ ExecGather(GatherState *node)
229
229
void
230
230
ExecEndGather (GatherState * node )
231
231
{
232
+ ExecEndNode (outerPlanState (node )); /* let children clean up first */
232
233
ExecShutdownGather (node );
233
234
ExecFreeExprContext (& node -> ps );
234
235
ExecClearTuple (node -> ps .ps_ResultTupleSlot );
235
- ExecEndNode (outerPlanState (node ));
236
236
}
237
237
238
238
/*
You can’t perform that action at this time.
0 commit comments