summaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/bool.c
diff options
context:
space:
mode:
authorEtsuro Fujita <efujita@postgresql.org>2019-06-13 17:59:17 +0900
committerEtsuro Fujita <efujita@postgresql.org>2019-06-13 17:59:17 +0900
commit1a3d9f62c1d158585266200b8bbb2d7d757c4eae (patch)
treeb73049bd3e5fd2c8aded68b3866230df50ef1ccb /src/backend/utils/adt/bool.c
parentdf88137a398b5a45a95bca14c334b6b708c8018e (diff)
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
Diffstat (limited to 'src/backend/utils/adt/bool.c')
0 files changed, 0 insertions, 0 deletions