]> granicus.if.org Git - postgresql/commit
Directly modify foreign tables.
authorRobert Haas <rhaas@postgresql.org>
Fri, 18 Mar 2016 17:48:58 +0000 (13:48 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 18 Mar 2016 17:55:52 +0000 (13:55 -0400)
commit0bf3ae88af330496517722e391e7c975e6bad219
tree46220c3ebfc9616af8d683c74395b18045c59a8a
parent3422fecccadb021b7b4cdbc73b2c29f66f031761
Directly modify foreign tables.

postgres_fdw can now sent an UPDATE or DELETE statement directly to
the foreign server in simple cases, rather than sending a SELECT FOR
UPDATE statement and then updating or deleting rows one-by-one.

Etsuro Fujita, reviewed by Rushabh Lathia, Shigeru Hanada, Kyotaro
Horiguchi, Albe Laurenz, Thom Brown, and me.
21 files changed:
contrib/postgres_fdw/deparse.c
contrib/postgres_fdw/expected/postgres_fdw.out
contrib/postgres_fdw/postgres_fdw.c
contrib/postgres_fdw/postgres_fdw.h
contrib/postgres_fdw/sql/postgres_fdw.sql
doc/src/sgml/fdwhandler.sgml
doc/src/sgml/postgres-fdw.sgml
src/backend/commands/explain.c
src/backend/executor/execMain.c
src/backend/executor/nodeForeignscan.c
src/backend/executor/nodeModifyTable.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/outfuncs.c
src/backend/nodes/readfuncs.c
src/backend/optimizer/plan/createplan.c
src/backend/optimizer/util/plancat.c
src/include/foreign/fdwapi.h
src/include/nodes/execnodes.h
src/include/nodes/pg_list.h
src/include/nodes/plannodes.h
src/include/optimizer/plancat.h