@@ -284,7 +284,9 @@ static Material *make_material(Plan *lefttree);
284284static Memoize * make_memoize (Plan * lefttree , Oid * hashoperators ,
285285 Oid * collations , List * param_exprs ,
286286 bool singlerow , bool binary_mode ,
287- uint32 est_entries , Bitmapset * keyparamids );
287+ uint32 est_entries , Bitmapset * keyparamids ,
288+ double est_calls , double est_unique_keys ,
289+ double est_hit_ratio );
288290static WindowAgg * make_windowagg (List * tlist , WindowClause * wc ,
289291 int partNumCols , AttrNumber * partColIdx , Oid * partOperators , Oid * partCollations ,
290292 int ordNumCols , AttrNumber * ordColIdx , Oid * ordOperators , Oid * ordCollations ,
@@ -1753,7 +1755,8 @@ create_memoize_plan(PlannerInfo *root, MemoizePath *best_path, int flags)
17531755
17541756 plan = make_memoize (subplan , operators , collations , param_exprs ,
17551757 best_path -> singlerow , best_path -> binary_mode ,
1756- best_path -> est_entries , keyparamids );
1758+ best_path -> est_entries , keyparamids , best_path -> est_calls ,
1759+ best_path -> est_unique_keys , best_path -> est_hit_ratio );
17571760
17581761 copy_generic_path_info (& plan -> plan , (Path * ) best_path );
17591762
@@ -6749,7 +6752,8 @@ materialize_finished_plan(Plan *subplan)
67496752static Memoize *
67506753make_memoize (Plan * lefttree , Oid * hashoperators , Oid * collations ,
67516754 List * param_exprs , bool singlerow , bool binary_mode ,
6752- uint32 est_entries , Bitmapset * keyparamids )
6755+ uint32 est_entries , Bitmapset * keyparamids , double est_calls ,
6756+ double est_unique_keys , double est_hit_ratio )
67536757{
67546758 Memoize * node = makeNode (Memoize );
67556759 Plan * plan = & node -> plan ;
@@ -6767,6 +6771,9 @@ make_memoize(Plan *lefttree, Oid *hashoperators, Oid *collations,
67676771 node -> binary_mode = binary_mode ;
67686772 node -> est_entries = est_entries ;
67696773 node -> keyparamids = keyparamids ;
6774+ node -> est_calls = est_calls ;
6775+ node -> est_unique_keys = est_unique_keys ;
6776+ node -> est_hit_ratio = est_hit_ratio ;
67706777
67716778 return node ;
67726779}
0 commit comments