未验证 提交 c8ac4643 编写于 作者: X xiong-gang 提交者: GitHub

Correct memory unit

ExecChooseHashTableSize takes KB as parameter while global_work_mem returns bytes
上级 0e118441
......@@ -2782,7 +2782,7 @@ initial_cost_hashjoin(PlannerInfo *root, JoinCostWorkspace *workspace,
ExecChooseHashTableSize(inner_path_rows,
inner_path->parent->width,
true, /* useskew */
global_work_mem(root),
global_work_mem(root) / 1024L,
&numbuckets,
&numbatches,
&num_skew_mcvs);
......@@ -4691,7 +4691,7 @@ Cost incremental_hashjoin_cost(double rows, int inner_width, int outer_width, Li
ExecChooseHashTableSize(rows,
inner_width,
true /* useSkew */,
global_work_mem(root),
global_work_mem(root) / 1024L,
&numbuckets,
&numbatches,
&num_skew_mcvs);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册