Hi

+               allow = ps && IsA(ps, GatherState) && !ps->ps_ProjInfo &&
+                               plannedstmt->parallelModeNeeded &&
+                               plannedstmt->planTree &&
+                               IsA(plannedstmt->planTree, Gather) &&
+                               plannedstmt->planTree->lefttree &&
+                               plannedstmt->planTree->lefttree->parallel_aware 
&&
+                               plannedstmt->planTree->lefttree->parallel_safe;

I noticed it check both IsA(ps, GatherState) and IsA(plannedstmt->planTree, 
Gather).
Does it mean it is possible that IsA(ps, GatherState) is true but 
IsA(plannedstmt->planTree, Gather) is false ?

I did some test but did not find a case like that.


Best regards,
houzj




Reply via email to