Richard Guo <guofenglinux(at)gmail(dot)com> writes:
> Alternatively, can we look at subroot->parse->targetList instead of
> subquery->targetList where we call estimate_num_groups on the output of
> the subquery?
Please read the comment just above that.
regards, tom lane