Re: foreign join error "variable not found in subplan target list"
Etsuro Fujita <etsuro.fujita@gmail.com>
From: Etsuro Fujita <etsuro.fujita@gmail.com>
To: Richard Guo <guofenglinux@gmail.com>
Cc: Alexander Pyhalov <a.pyhalov@postgrespro.ru>, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Date: 2022-08-30T07:50:46Z
Lists: pgsql-bugs
On Mon, Aug 29, 2022 at 6:46 PM Richard Guo <guofenglinux@gmail.com> wrote: > I'm looking again on how we adjust the PathTarget, and I think we may > need to update the cost and width fields if there are any new columns > added. Maybe we can leverage set_pathtarget_cost_width for that. I'm not really sure we really need to make the estimates accurate, because 1) the resulting EPQ plan is used only for rechecks, so the estimates would not be that important IMO, and 2) in fact, we don't adjust the estimates of a given EPQ plan in postgresGetForeignPlan() even when replacing the plan's tlist and/or removing local conditions from the plan. Is it worth expending the cycles here? Sorry for the late reply. Best regards, Etsuro Fujita
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