Hi Tom,
> Fortunately, now that we have Result.relids, it's pretty easy
> to discover which leaf queries are represented and choose the
> leftmost one. Hence, v2 attached.
Thanks, v2 looks good to me. With it, EXPLAIN works on all of the
same 20000 random queries.
With the dummy setop inside a subquery, under a JOIN or GROUP BY,
the Result shows the columns of its own left-most leaf.
Thanks,
Shihao