pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #14249: In FDW, variable not found in subplan target list
2+ messages / 2 participants
[nested] [flat]
* BUG #14249: In FDW, variable not found in subplan target list
@ 2016-07-14 13:27 wayne.warren@multiscalehn.com
2016-07-14 14:07 ` Re: BUG #14249: In FDW, variable not found in subplan target list Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: wayne.warren@multiscalehn.com @ 2016-07-14 13:27 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 14249
Logged by: Wayne Warren
Email address: wayne.warren@multiscalehn.com
PostgreSQL version: 9.6beta2
Operating system: Ubuntu 14
Description:
I have written a foreign data wrapper that works with version 9.5.2. Now
with 9.6beta2 I receive "ERROR: variable not found in subplan target list"
when I refer to a column in the WHERE clause that is not also listed as a
target column:
mydb=# select record_id, addr_chg_user_id from si_ept_470
where addr_chg_instant='5441342125';
ERROR: variable not found in subplan target list
When the column is included in the target list, the correct results are
produced.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #14249: In FDW, variable not found in subplan target list
2016-07-14 13:27 BUG #14249: In FDW, variable not found in subplan target list wayne.warren@multiscalehn.com
@ 2016-07-14 14:07 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2016-07-14 14:07 UTC (permalink / raw)
To: wayne.warren@multiscalehn.com; +Cc: pgsql-bugs
wayne.warren@multiscalehn.com writes:
> I have written a foreign data wrapper that works with version 9.5.2. Now
> with 9.6beta2 I receive "ERROR: variable not found in subplan target list"
> when I refer to a column in the WHERE clause that is not also listed as a
> target column:
> mydb=# select record_id, addr_chg_user_id from si_ept_470
> where addr_chg_instant='5441342125';
> ERROR: variable not found in subplan target list
No such misbehavior is visible in file_fdw or postgres_fdw, so presumably
your FDW is doing something wrong. There's not enough information here
to say what; though a likely guess is that you're building a custom
fdw_scan_tlist and forgetting to include Vars from restriction clauses
in it.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2016-07-14 14:07 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-07-14 13:27 BUG #14249: In FDW, variable not found in subplan target list wayne.warren@multiscalehn.com
2016-07-14 14:07 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox