提交 281f0f88 编写于 作者: D Daniel Gustafsson

Remove unused copy of processed rels in join ordering

The backup list is either a leftover debugging artefact or its
use was removed during the merge work and never made it into the
rewritten commit history. Either way, it serves no purpose so
remove from this hot code path.

Discussion: https://github.com/greenplum-db/gpdb/pull/5216Reviewed-by: NVenkatesh Raghavan <vraghavan@pivotal.io>
上级 fd9d8c2f
......@@ -1444,7 +1444,6 @@ standard_join_search(PlannerInfo *root, int levels_needed, List *initial_rels, b
ListCell *lc;
ListCell *prev;
ListCell *next;
List *backup;
/*
* Determine all possible pairs of relations to be joined at this
......@@ -1456,7 +1455,6 @@ standard_join_search(PlannerInfo *root, int levels_needed, List *initial_rels, b
/*
* Do cleanup work on each just-processed rel.
*/
backup = list_copy(root->join_rel_level[lev]);
prev = NULL;
for (lc = list_head(root->join_rel_level[lev]);
lc != NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册