Richard Guo <guofenglinux(at)gmail(dot)com> writes:
> Hmm, is there a way to detect in find_window_run_conditions() whether
> the WindowFunc's argument references a SubLink node of a subquery that
> hasn't been pulled up?
contain_subplans will recognize both SubLinks and SubPlans,
so there must be some other factor here. (I didn't look yet.)
regards, tom lane