From: Tom Lane <tgl@sss.pgh.pa.us>
To: Etsuro Fujita <etsuro.fujita@gmail.com>
Cc: Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Cc: sean.johnston@edgeintelligence.com
Cc: pgsql-bugs@lists.postgresql.org
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: BUG #15781: subselect on foreign table (postgres_fdw) can crash (segfault)
Date: Sat, 27 Apr 2019 10:47:13 -0400
Message-ID: <20776.1556376433@sss.pgh.pa.us> (raw)
In-Reply-To: <CAPmGK15OYdYVMgUMEOBO2Z_QU+Vsz2XbLJhp0ze6m-7bZ3nqww@mail.gmail.com>
References: <15781-2601b1002bad087c@postgresql.org>
<25734.1556216681@sss.pgh.pa.us>
<5CC2FC12.6050409@lab.ntt.co.jp>
<30995.1556298600@sss.pgh.pa.us>
<CAPmGK15OYdYVMgUMEOBO2Z_QU+Vsz2XbLJhp0ze6m-7bZ3nqww@mail.gmail.com>
Etsuro Fujita <etsuro.fujita@gmail.com> writes:
> On Sat, Apr 27, 2019 at 2:10 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> If we don't want to change what the core code does with fdw_exprs,
>> I think the only way to fix it is to hack postgres_fdw so that it
>> won't generate plans involving the problematic case.
> Seems reasonable.
>> See attached.
> I read the patch. It looks good to me. I didn't test it, though.
Thanks for looking! Have a good vacation ...
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, etsuro.fujita@gmail.com, fujita.etsuro@lab.ntt.co.jp, sean.johnston@edgeintelligence.com, pgsql-hackers@lists.postgresql.org
Subject: Re: BUG #15781: subselect on foreign table (postgres_fdw) can crash (segfault)
In-Reply-To: <20776.1556376433@sss.pgh.pa.us>
References: <15781-2601b1002bad087c@postgresql.org> <25734.1556216681@sss.pgh.pa.us> <5CC2FC12.6050409@lab.ntt.co.jp> <30995.1556298600@sss.pgh.pa.us> <CAPmGK15OYdYVMgUMEOBO2Z_QU+Vsz2XbLJhp0ze6m-7bZ3nqww@mail.gmail.com> <20776.1556376433@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox