> The strongest > case is a top-level AND condition with equality clauses for all columns
I see one issue related to that with the current patch, having the same amount of conditions as the table doesn't mean that we have conditions for all columns.
I've fixed this in the v2 patch attached above (also attached here for completeness). It focuses on the basic full-dimensional top-level AND equality miss
Now we construct a Bitmapset with the columns the clause covers and compare it to `stat->keys` that contains the columns covered by the MCV statistic.