postgres_fdw: Avoid possible misbehavior when RETURNING tableoid column only.
authorRobert Haas <rhaas@postgresql.org>
Fri, 5 Feb 2016 03:15:50 +0000 (22:15 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 5 Feb 2016 03:27:13 +0000 (22:27 -0500)
commit37c84570b1e32aef886c9b546e0dd4a128cb7492
tree065d0e95046b8d72b536cebd5fbdc5df3f53fa56
parent9418d79a7664e75a2824adfc78b859b4d0f77962
postgres_fdw: Avoid possible misbehavior when RETURNING tableoid column only.

deparseReturningList ended up adding up RETURNING NULL to the code, but
code elsewhere saw an empty list of attributes and concluded that it
should not expect tuples from the remote side.

Etsuro Fujita and Robert Haas, reviewed by Thom Brown
contrib/postgres_fdw/deparse.c
contrib/postgres_fdw/expected/postgres_fdw.out
contrib/postgres_fdw/sql/postgres_fdw.sql