Re: foreign join error "variable not found in subplan target list"
Richard Guo <guofenglinux@gmail.com>
From: Richard Guo <guofenglinux@gmail.com>
To: Alexander Pyhalov <a.pyhalov@postgrespro.ru>
Cc: Etsuro Fujita <etsuro.fujita@gmail.com>, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2022-08-10T05:28:36Z
Lists: pgsql-bugs
Attachments
- v1-0001-Include-local-conds-in-epq-pathtarget.patch (application/octet-stream) patch v1-0001
On Wed, Aug 10, 2022 at 10:15 AM Richard Guo <guofenglinux@gmail.com> wrote: > Currently the outer_plan used in postgresGetForeignPlan() can only be > 'Join' or 'Sort + Join'. I'm wondering whether we can take this > knowledge into consideration when we fix the outer_plan's tlist, to also > fix the Join's tlist if it is below the Sort node. > Alternatively, how about we include in the EPQ path's pathtarget the columns required for evaluating the local conditions when we consider EPQ paths with pathkeys? Something like attached. Thanks Richard
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