| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> | 
|---|---|
| To: | wayne(dot)warren(at)multiscalehn(dot)com | 
| Cc: | pgsql-bugs(at)postgresql(dot)org | 
| Subject: | Re: BUG #14249: In FDW, variable not found in subplan target list | 
| Date: | 2016-07-14 14:07:56 | 
| Message-ID: | 1216.1468505276@sss.pgh.pa.us | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-bugs | 
wayne(dot)warren(at)multiscalehn(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Kevin Grittner | 2016-07-14 14:13:13 | Re: BUG #14246: Postgres crashing frequently | 
| Previous Message | jason | 2016-07-14 13:52:33 | BUG #14250: Error in subquery fails silently and parent query continues to execute |