From: Tom Lane <tgl@sss.pgh.pa.us>
To: wayne.warren@multiscalehn.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14249: In FDW, variable not found in subplan target list
Date: Thu, 14 Jul 2016 10:07:56 -0400
Message-ID: <1216.1468505276@sss.pgh.pa.us> (raw)
In-Reply-To: <20160714132744.1416.84821@wrigleys.postgresql.org>
References: <20160714132744.1416.84821@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, wayne.warren@multiscalehn.com
Subject: Re: BUG #14249: In FDW, variable not found in subplan target list
In-Reply-To: <1216.1468505276@sss.pgh.pa.us>
References: <20160714132744.1416.84821@wrigleys.postgresql.org> <1216.1468505276@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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