未验证 提交 ebc3eba4 编写于 作者: Z Zhenghua Lyu 提交者: GitHub

Remove useless FIXME in InitPlan

BuildPartitionNodeFromRoot will always use root relid no matter
what parameter is passed to it.

There is an optimization we might do: for some cases, like if user directly insert into
a child partition, then set estate->es_result_partitions to NULL to avoid dispatch it
since a huge partition table's partition info may cost much memory. We can spike this
later.
上级 40d7c453
......@@ -1747,7 +1747,6 @@ InitPlan(QueryDesc *queryDesc, int eflags)
containRoot = true;
}
/* FIXME: does relid here have to be the root's OID? */
estate->es_result_partitions = BuildPartitionNodeFromRoot(relid);
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册