bashtanov(at)imap(dot)cc writes:
> Do blackbox-style subplans, such as subqueries with grouping, share only the
> resulting stream order info with the enclosing query, not the equivalence
> classes?
Yes, see convert_subquery_pathkeys().
regards, tom lane