Skip site navigation (1) Skip section navigation (2)

Re: BUG #2218: Variables selected in VIEWs under different names break queries using those views

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Nicholas" <hb(at)x256(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2218: Variables selected in VIEWs under different names break queries using those views
Date: 2006-01-29 05:25:59
Message-ID: 21903.1138512359@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
"Nicholas" <hb(at)x256(dot)com> writes:
> SELECT cgm.id, g.name, mi.invitees FROM meeting_instances as mi JOIN
> meeting_versions as m ON m.iid = '33' JOIN groups as g ON g.id = m.team LEFT
> JOIN cachedgroupmembers as cgm ON cgm.groupid = m.team and not cgm.disabled
> and cgm.memberid = '55' WHERE mi.id = '33';
> ERROR:  variable not found in subplan target list

Could we see a *complete* example please?  I have no time or interest
to guess about the tables underlying this view.

			regards, tom lane

In response to

pgsql-bugs by date

Next:From: Brian HirtDate: 2006-01-29 05:54:13
Subject: bug with aggregate + multi column index + index_scan
Previous:From: Tom LaneDate: 2006-01-28 19:30:44
Subject: Re: Bug#347548: DOMAIN CHECK constraint bypassed

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group