Re: foreign join error "variable not found in subplan target list" - Mailing list pgsql-bugs

From Alexander Pyhalov
Subject Re: foreign join error "variable not found in subplan target list"
Date
Msg-id 80d1b0827ea8643e0163cd06b384b9d4@postgrespro.ru
Whole thread Raw
In response to Re: foreign join error "variable not found in subplan target list"  (Richard Guo <guofenglinux@gmail.com>)
Responses Re: foreign join error "variable not found in subplan target list"
List pgsql-bugs
Richard Guo писал 2022-08-10 08:28:
> 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
> thecolumns required for evaluating the local conditions when we
> consider
> EPQ paths with pathkeys? Something like attached.
> 
> Thanks
> Richard

Hi.
Why are we sure that epq_path can provide all vars from restrictinfo?
-- 
Best regards,
Alexander Pyhalov,
Postgres Professional



pgsql-bugs by date:

Previous
From: Richard Guo
Date:
Subject: Re: foreign join error "variable not found in subplan target list"
Next
From: Amit Langote
Date:
Subject: Re: BUG #17574: Attaching an invalid index to partition head make head index invalid forever