!6645 修复enable_seqscan=off时列缓存cost计算差异
Merge pull request !6645 from jemappellehc/imcs_bugfix
This commit is contained in:
@ -798,7 +798,7 @@ void cost_imcstorescan(Path* path, PlannerInfo* root, RelOptInfo* baserel)
|
||||
|
||||
startup_cost += baserel->baserestrictcost.startup;
|
||||
|
||||
if (!u_sess->attr.attr_sql.enable_seqscan)
|
||||
if (!u_sess->attr.attr_sql.enable_imcsscan)
|
||||
startup_cost += g_instance.cost_cxt.disable_cost;
|
||||
|
||||
/*
|
||||
@ -820,7 +820,7 @@ void cost_imcstorescan(Path* path, PlannerInfo* root, RelOptInfo* baserel)
|
||||
path->total_cost = startup_cost + run_cost;
|
||||
path->stream_cost = 0;
|
||||
|
||||
if (!u_sess->attr.attr_sql.enable_seqscan)
|
||||
if (!u_sess->attr.attr_sql.enable_imcsscan)
|
||||
path->total_cost *=
|
||||
(g_instance.cost_cxt.disable_cost_enlarge_factor * g_instance.cost_cxt.disable_cost_enlarge_factor);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user