Re: foreign join error "variable not found in subplan target list"
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Richard Guo <guofenglinux@gmail.com>
Cc: Etsuro Fujita <etsuro.fujita@gmail.com>,
Alexander Pyhalov <a.pyhalov@postgrespro.ru>,
PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2022-08-30T02:04:39Z
Lists: pgsql-bugs
Richard Guo <guofenglinux@gmail.com> writes: > To be concrete, I mean something like this: > + /* Update the cost and width fields if we have added any > new columns. */ > + if (!equal(epq_path->pathtarget->exprs, target->exprs)) > + set_pathtarget_cost_width(root, target); Wouldn't a list_length() comparison be sufficient? equal() seems like overkill. regards, tom lane
Commits
-
postgres_fdw: Avoid 'variable not found in subplan target list' error.
- d4adff0e97f0 10.23 landed
- 07d81d1e5b75 11.18 landed
- 87fd3c9025da 12.13 landed
- 6749d4e8c71b 13.9 landed
- b53d104ae3b9 14.6 landed
- 64387c540805 15.0 landed
- 9320cfdd06e5 16.0 landed