Skip to content

Commit

Permalink
Change the logic for equivalence classes.
Browse files Browse the repository at this point in the history
It now uses EquivalenceClass structures to indicate which clauses are equivalent.
  • Loading branch information
Daniil Anisimov committed Jan 22, 2024
1 parent 758257a commit 5bda283
Show file tree
Hide file tree
Showing 12 changed files with 1,894 additions and 185 deletions.
2 changes: 1 addition & 1 deletion cardinality_hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ aqo_get_parameterized_baserel_size(PlannerInfo *root,

forboth(l, allclauses, l2, selectivities)
{
current_hash = get_clause_hash(((AQOClause *) lfirst(l))->clause,
current_hash = get_clause_hash((AQOClause *) lfirst(l),
nargs, args_hash, eclass_hash);
cache_selectivity(current_hash, rel->relid, rte->relid,
*((double *) lfirst(l2)));
Expand Down
Loading

0 comments on commit 5bda283

Please sign in to comment.