Use multi-variate MCV lists to estimate ScalarArrayOpExpr

Tomas Vondra <tomas.vondra@postgresql.org>

Commit: e83daa7e331e0718bb254ab685f2ed95df423554
Author: Tomas Vondra <tomas.vondra@postgresql.org>
Date: 2020-03-14T15:13:00Z
Releases: 13.0
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

Files

Discussion