postgresql/contrib/postgres_fdw
Tomas Vondra 927f453a94 Fix tuple routing to initialize batching only for inserts
A cross-partition update on a partitioned table is implemented as a
delete followed by an insert. With foreign partitions, this was however
causing issues, because the FDW and core may disagree on when to enable
batching.  postgres_fdw was only allowing batching for plain inserts
(CMD_INSERT) while core was trying to batch the insert component of the
cross-partition update.  Fix by restricting core to apply batching only
to plain CMD_INSERT queries.

It's possible to allow batching for cross-partition updates, but that
will require more extensive changes, so better to leave that for a
separate patch.

Author: Amit Langote
Reviewed-by: Tomas Vondra, Takayuki Tsunakawa
Discussion: https://postgr.es/m/20200628151002.7x5laxwpgvkyiu3q@development
2021-02-18 00:03:45 +01:00
..
expected Fix tuple routing to initialize batching only for inserts 2021-02-18 00:03:45 +01:00
sql Fix tuple routing to initialize batching only for inserts 2021-02-18 00:03:45 +01:00
.gitignore Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
connection.c postgres_fdw: Add functions to discard cached connections. 2021-01-26 15:35:54 +09:00
deparse.c Implement support for bulk inserts in postgres_fdw 2021-01-20 23:57:27 +01:00
Makefile postgres_fdw: Add function to list cached connections to foreign servers. 2021-01-18 15:11:08 +09:00
option.c Implement support for bulk inserts in postgres_fdw 2021-01-20 23:57:27 +01:00
postgres_fdw--1.0--1.1.sql postgres_fdw: Add functions to discard cached connections. 2021-01-26 15:35:54 +09:00
postgres_fdw--1.0.sql Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.c Fix tuple routing to initialize batching only for inserts 2021-02-18 00:03:45 +01:00
postgres_fdw.control postgres_fdw: Add function to list cached connections to foreign servers. 2021-01-18 15:11:08 +09:00
postgres_fdw.h Implement support for bulk inserts in postgres_fdw 2021-01-20 23:57:27 +01:00
shippable.c Replace remaining uses of "whitelist". 2021-01-05 14:00:16 +13:00