Skip to content

Commit ce94043

Browse files
author
Alena Rybakina
committed
Fix AQO_DEBUG_PRINT
1 parent db6ac90 commit ce94043

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎cardinality_estimation.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ predict_debug_output(List *clauses, List *selectivities,
3333

3434
initStringInfo(&debug_str);
3535
appendStringInfo(&debug_str, "fss: %d, clausesNum: %d, ",
36-
fss_hash, list_length(clauses));
36+
fss, list_length(clauses));
3737

3838
appendStringInfoString(&debug_str, ", selectivities: { ");
3939
foreach(lc, selectivities)
@@ -45,8 +45,8 @@ predict_debug_output(List *clauses, List *selectivities,
4545
appendStringInfoString(&debug_str, "}, reloids: { ");
4646
foreach(lc, reloids)
4747
{
48-
Value *relname = lfirst_node(String, lc);
49-
appendStringInfo(&debug_str, "%s ", valStr(relname));
48+
Oid relname = lfirst_oid(lc);
49+
appendStringInfo(&debug_str, "%d ", relname);
5050
}
5151

5252
appendStringInfo(&debug_str, "}, result: %lf", result);

0 commit comments

Comments
 (0)