解决执行explain plan时并行查询出现core的问题

通过查找堆栈信息,发现在explain print树中存在执行计划为Gather的节点,其pt_operation值为NULL,在进行strcmp时导致了core问题的出现
因此在GetPlanNodePlainText函数中T_Gather增加了对pt_operation的赋值,使得*pt_operation=Gather
This commit is contained in:
徐鲲鹏
2020-09-25 11:18:11 +08:00
committed by Gitee
parent 8a0e553c1d
commit fac17763b5

View File

@ -154,6 +154,7 @@ void GetPlanNodePlainText(
}
break;
case T_Gather:
*pt_operation = "Gather";
*pname = *sname = *pt_options = "Gather";
break;
case T_IndexScan: