!3033 据是否开启向量化对向量化计划中的targetlist进行剪裁,只保留使用到列,以降低行转列时候的开销

Merge pull request !3033 from wanghao19920907/master_targetlist
This commit is contained in:
opengauss-bot
2023-06-01 11:32:08 +00:00
committed by Gitee
7 changed files with 57 additions and 26 deletions

View File

@ -4860,7 +4860,10 @@ static HashJoin* create_hashjoin_plan(PlannerInfo* root, HashPath* best_path, Pl
disuse_physical_tlist(inner_plan, best_path->jpath.innerjoinpath);
/* If we expect batching, suppress excess columns in outer tuples too */
if (best_path->num_batches > 1)
if (best_path->num_batches > 1 ||
(u_sess->attr.attr_sql.enable_vector_engine &&
u_sess->attr.attr_sql.vectorEngineStrategy != OFF_VECTOR_ENGINE &&
u_sess->attr.attr_sql.enable_vector_targetlist))
disuse_physical_tlist(outer_plan, best_path->jpath.outerjoinpath);
/*