Hi,
Here is the patch rebased on the current master. Also, I fixed some
minor slips and one static analyzer warning.
This is just for adding to the next commitfest and enforcing work with
this patch.
One extra difference in newly added postgres_fdw tests is caused by this
patch - see changes in the query plan in attachment.
--
regards,
Andrey Lepikhov
Postgres Professional