Martin Lillepuu <martin(at)lillepuu(dot)com> writes:
> when I run following sql in 2 separate queries, they work fine. but when
> used as one beg statement with UNION, I get following error:
> join_references: variable not in subplan target lists
AFAICT this works OK in 7.1beta.
regards, tom lane