Fix the panic when estimating cost for aggregation on Result path.
For Result pathnode, its parent would be set to NULL. So we cannot reference its parent in cost_common_agg() when estimating cost for aggregation. Instead, we can use the rows in the Path and use 0 as the width. This patch fixes github issue #8357.
Showing
想要评论请 注册 或 登录