postgres/contrib/postgres_fdw
Etsuro Fujita 1ade21e7fa postgres_fdw: Account for triggers in non-direct remote UPDATE planning.
Previously, in postgresPlanForeignModify, we planned an UPDATE operation
on a foreign table so that we transmit only columns that were explicitly
targets of the UPDATE, so as to avoid unnecessary data transmission, but
if there were BEFORE ROW UPDATE triggers on the foreign table, those
triggers might change values for non-target columns, in which case we
would miss sending changed values for those columns.  Prevent optimizing
away transmitting all columns if there are BEFORE ROW UPDATE triggers on
the foreign table.

This is an oversight in commit 7cbe57c34 which added triggers on foreign
tables, so apply the patch all the way back to 9.4 where that came in.

Author: Shohei Mochizuki
Reviewed-by: Amit Langote
Discussion: https://postgr.es/m/201905270152.x4R1q3qi014550@toshiba.co.jp
2019-06-13 17:59:13 +09:00
..
expected postgres_fdw: Account for triggers in non-direct remote UPDATE planning. 2019-06-13 17:59:13 +09:00
sql postgres_fdw: Account for triggers in non-direct remote UPDATE planning. 2019-06-13 17:59:13 +09:00
.gitignore
connection.c Re-establish postgres_fdw connections after server or user mapping changes. 2017-07-21 12:51:38 -04:00
deparse.c Fix assorted fallout from IS [NOT] NULL patch. 2016-07-28 16:09:15 -04:00
Makefile Prevent accidental linking of system-supplied copies of libpq.so etc. 2018-07-09 17:23:31 -04:00
option.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
postgres_fdw--1.0.sql
postgres_fdw.c postgres_fdw: Account for triggers in non-direct remote UPDATE planning. 2019-06-13 17:59:13 +09:00
postgres_fdw.control
postgres_fdw.h pgindent run for 9.6 2016-06-09 18:02:36 -04:00
shippable.c Update copyright for 2016 2016-01-02 13:33:40 -05:00