Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116 - Mailing list pgsql-hackers

From Etsuro Fujita
Subject Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116
Date
Msg-id 8f76fda3-4c86-9945-26d9-3175a6c68851@lab.ntt.co.jp
Whole thread Raw
In response to Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: [sqlsmith] Failed assertion in postgres_fdw/deparse.c:1116  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On 2016/06/16 22:00, Robert Haas wrote:
> On Thu, Jun 16, 2016 at 7:05 AM, Etsuro Fujita
> <fujita.etsuro@lab.ntt.co.jp> wrote:
>> ISTM that a robuster solution to this is to push down the ft1-ft2-ft3 join
>> with the PHV by extending deparseExplicitTargetList() and/or something else
>> so that we can send the remote query like:
>>
>> select ft1.a, (ft3.a IS NOT NULL) from (ft1 inner join ft2 on ft1.a = ft2.a)
>> left join ft3 on ft1.a = ft3.a

> I completely agree we should have that, but not for 9.6.

OK, I'll work on that for 10.0.

Best regards,
Etsuro Fujita





pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Parallelized polymorphic aggs, and aggtype vs aggoutputtype
Next
From: Amit Kapila
Date:
Subject: Re: ERROR: ORDER/GROUP BY expression not found in targetlist