Re: variable not found in subplan target list?

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: Klint Gore <kg(at)kgb(dot)une(dot)edu(dot)au>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: variable not found in subplan target list?
Date: 2003-11-24 06:48:17
Message-ID: 20031123224546.X68262@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


On Mon, 24 Nov 2003, Klint Gore wrote:

> I've got the message "ERROR: variable not found in subplan target lists"
> when I have a union between 2 views. Both selects from the views run
> without the union. Same result using intersect and except. Same result
> using any of them with the all qualifier. Explain of the union gives
> the error, explain of each individual select gives a result.
>
> The view definitions contain unions and cross joins.
>
> The error still occurs if I simplify the selects down to
>
> select 'abc' from view1
> union
> select 'cba' from view2
>
> "PostgreSQL 7.4 on i686-pc-linux-gnu, compiled by GCC 2.96"
> redhat 7.2 (2.4.7-10)

Can you send a test case with table and view definitions, it's hard to
generate one from just the information above.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Antony Brooke-Wood 2003-11-24 12:22:43 String index out of range - Postgresql 7.3.4, Resin & JDBC
Previous Message Klint Gore 2003-11-24 06:35:49 variable not found in subplan target list?