pgsql: postgres_fdw: Avoid possible misbehavior when RETURNING tableoid

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: postgres_fdw: Avoid possible misbehavior when RETURNING tableoid
Date: 2016-02-05 03:27:58
Message-ID: E1aRX3u-0000oc-Az@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/37c84570b1e32aef886c9b546e0dd4a128cb7492

Modified Files
--------------
contrib/postgres_fdw/deparse.c | 18 +++++----
contrib/postgres_fdw/expected/postgres_fdw.out | 53 ++++++++++++++++++++++++++
contrib/postgres_fdw/sql/postgres_fdw.sql | 9 +++++
3 files changed, 73 insertions(+), 7 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2016-02-05 03:33:02 pgsql: postgres_fdw: pgindent run.
Previous Message Robert Haas 2016-02-05 03:08:15 pgsql: When modifying a foreign table, initialize tableoid field proper