Hi,
I got a test failure with this version of the patch in the postges_fdw. It looks to me like it was caused by a typo in the source code which is fixed in the attached patch.
After applying this patch check-world passes.
Andreas