diff options
author | Tomas Vondra | 2020-03-14 13:56:37 +0000 |
---|---|---|
committer | Tomas Vondra | 2020-03-14 15:13:00 +0000 |
commit | e83daa7e331e0718bb254ab685f2ed95df423554 (patch) | |
tree | 277ffc346c2d8c579ccfc1867192f031bbc816df /src/include/statistics/extended_stats_internal.h | |
parent | 8f321bd16cdb11307f17007eb3c55b65d7d323ef (diff) |
Use multi-variate MCV lists to estimate ScalarArrayOpExpr
Commit 8f321bd16c added support for estimating ScalarArrayOpExpr clauses
(IN/ANY) clauses using functional dependencies. There's no good reason
not to support estimation of these clauses using multi-variate MCV lists
too, so this commits implements that. That makes the behavior consistent
and MCV lists can estimate all variants (ANY/ALL, inequalities, ...).
Author: Tomas Vondra
Review: Dean Rasheed
Discussion: https://www.postgresql.org/message-id/flat/13902317.Eha0YfKkKy%40pierred-pdoc
Diffstat (limited to 'src/include/statistics/extended_stats_internal.h')
-rw-r--r-- | src/include/statistics/extended_stats_internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/statistics/extended_stats_internal.h b/src/include/statistics/extended_stats_internal.h index b512ee908a4..2b14ab238cb 100644 --- a/src/include/statistics/extended_stats_internal.h +++ b/src/include/statistics/extended_stats_internal.h @@ -96,8 +96,8 @@ extern SortItem *build_sorted_items(int numrows, int *nitems, HeapTuple *rows, TupleDesc tdesc, MultiSortSupport mss, int numattrs, AttrNumber *attnums); -extern bool examine_opclause_expression(OpExpr *expr, Var **varp, - Const **cstp, bool *varonleftp); +extern bool examine_clause_args(List *args, Var **varp, + Const **cstp, bool *varonleftp); extern Selectivity mcv_clauselist_selectivity(PlannerInfo *root, StatisticExtInfo *stat, |