static bool parse_XactIsoLevel(const char *);
extern Cost _cpu_page_weight_;
-extern Cost _cpu_index_page_wight_;
+extern Cost _cpu_index_page_weight_;
extern bool _use_geqo_;
extern int32 _use_geqo_rels_;
extern bool _use_keyset_query_optimizer;
}
res = float4in((char *) value);
- _cpu_index_page_wight_ = *res;
+ _cpu_index_page_weight_ = *res;
return TRUE;
}
show_cost_index()
{
- elog(NOTICE, "COST_INDEX is %f", _cpu_index_page_wight_);
+ elog(NOTICE, "COST_INDEX is %f", _cpu_index_page_weight_);
return TRUE;
}
static bool
reset_cost_index()
{
- _cpu_index_page_wight_ = _CPU_INDEX_PAGE_WEIGHT_;
+ _cpu_index_page_weight_ = _CPU_INDEX_PAGE_WEIGHT_;
return TRUE;
}
bool _enable_hashjoin_ = true;
Cost _cpu_page_weight_ = _CPU_PAGE_WEIGHT_;
-Cost _cpu_index_page_wight_ = _CPU_INDEX_PAGE_WEIGHT_;
+Cost _cpu_index_page_weight_ = _CPU_INDEX_PAGE_WEIGHT_;
/*
* cost_seqscan
temp += ceil(((double) selec) * ((double) relpages));
/* per index tuples */
- temp += _cpu_index_page_wight_ * selec * indextuples;
+ temp += _cpu_index_page_weight_ * selec * indextuples;
/* per heap tuples */
temp += _cpu_page_weight_ * selec * reltuples;