Re: foreign join error "variable not found in subplan target list"
От
Richard Guo
Тема
Re: foreign join error "variable not found in subplan target list"
Дата
Msg-id
CAMbWs4_8ACt0b8Z8PTkSg9RbE1_OTsbA25k0OFp+faxBT9tuuQ@mail.gmail.com
Ответ на
Список
Дерево обсуждения
foreign join error "variable not found in subplan target list" Alexander Pyhalov <a.pyhalov@postgrespro.ru>
Re: foreign join error "variable not found in subplan target list" Etsuro Fujita <etsuro.fujita@gmail.com>
Re: foreign join error "variable not found in subplan target list" Richard Guo <guofenglinux@gmail.com>
Re: foreign join error "variable not found in subplan target list" Alexander Pyhalov <a.pyhalov@postgrespro.ru>
Re: foreign join error "variable not found in subplan target list" Richard Guo <guofenglinux@gmail.com>
Re: foreign join error "variable not found in subplan target list" Richard Guo <guofenglinux@gmail.com>
Re: foreign join error "variable not found in subplan target list" Alexander Pyhalov <a.pyhalov@postgrespro.ru>
Re: foreign join error "variable not found in subplan target list" Richard Guo <guofenglinux@gmail.com>
Re: foreign join error "variable not found in subplan target list" Alexander Pyhalov <a.pyhalov@postgrespro.ru>
Re: foreign join error "variable not found in subplan target list" Richard Guo <guofenglinux@gmail.com>
Re: foreign join error "variable not found in subplan target list" Etsuro Fujita <etsuro.fujita@gmail.com>
Re: foreign join error "variable not found in subplan target list" Richard Guo <guofenglinux@gmail.com>
Re: foreign join error "variable not found in subplan target list" Etsuro Fujita <etsuro.fujita@gmail.com>
Re: foreign join error "variable not found in subplan target list" Richard Guo <guofenglinux@gmail.com>
Re: foreign join error "variable not found in subplan target list" Richard Guo <guofenglinux@gmail.com>
Re: foreign join error "variable not found in subplan target list" Tom Lane <tgl@sss.pgh.pa.us>
Re: foreign join error "variable not found in subplan target list" Richard Guo <guofenglinux@gmail.com>
Re: foreign join error "variable not found in subplan target list" Etsuro Fujita <etsuro.fujita@gmail.com>
Re: foreign join error "variable not found in subplan target list" Richard Guo <guofenglinux@gmail.com>
Re: foreign join error "variable not found in subplan target list" Etsuro Fujita <etsuro.fujita@gmail.com>
Re: foreign join error "variable not found in subplan target list" Etsuro Fujita <etsuro.fujita@gmail.com>
Re: foreign join error "variable not found in subplan target list" Richard Guo <guofenglinux@gmail.com>
Re: foreign join error "variable not found in subplan target list" Etsuro Fujita <etsuro.fujita@gmail.com>
On Tue, Aug 30, 2022 at 10:04 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
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.
Yeah, list_length comparison would do, as we only append new columns
here. Thanks for the suggestion!
Thanks
Richard
here. Thanks for the suggestion!
Thanks
Richard
В списке pgsql-bugs по дате отправления
От: Kyotaro Horiguchi
Дата:
От: Amit Kapila
Дата: