Richard Guo <guofenglinux@gmail.com> writes:
> FWIW, I'm a bit concerned about the double for loop inside
> choose_plan_name(), especially since the outer loop runs with a true
> condition. Maybe I'm just worrying over nothing, as we probably don't
> expect a large number of subroots in practice, but the nested loops
> still make me a little uneasy.
I really doubt that a query could have enough subplans to make
that a problem. But if I'm wrong, it's surely something we could
improve in a localized way later.
regards, tom lane