Michal Schwarz <misch(at)czechin(dot)cz> writes:
> SELECT * FROM <view> returns following error message:
> ERROR: replace_vars_with_subplan_refs: variable not in subplan target list
This is fixed in 7.2.1 (or at least, a related problem was fixed, and
I don't see any failure with your example...)
regards, tom lane