Re: postgres_fdw bug in 9.6

Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>

From: Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
To: Jeff Janes <jeff.janes@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>, Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>, Tom Lane <tgl@sss.pgh.pa.us>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2017-01-18T02:48:35Z
Lists: pgsql-hackers

Attachments

On 2017/01/16 11:38, Etsuro Fujita wrote:
> On 2017/01/14 6:39, Jeff Janes wrote:
>> I do get a compiler warning:
>>
>> foreign.c: In function 'CreateLocalJoinPath':
>> foreign.c:832: warning: implicit declaration of function
>> 'pathkeys_contained_in'

> Will fix.

Done.  Attached is the new version.  I also adjusted the code a bit further.

Best regards,
Etsuro Fujita

Commits

  1. Fix test case for 'outer pathkeys do not match mergeclauses' fix.

  2. postgres_fdw: Avoid 'outer pathkeys do not match mergeclauses' error.

  3. postgres_fdw: Consider foreign joining and foreign sorting together.

  4. Allow foreign and custom joins to handle EvalPlanQual rechecks.

  5. Allow FDWs to push down quals without breaking EvalPlanQual rechecks.