pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Directly modify foreign tables.
Date: Fri, 18 Mar 2016 18:30:12 +0000
Message-ID: <E1agzA4-00074P-QW@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/0bf3ae88af330496517722e391e7c975e6bad219

Modified Files
--------------
contrib/postgres_fdw/deparse.c                 | 100 ++++
contrib/postgres_fdw/expected/postgres_fdw.out | 314 ++++++++++--
contrib/postgres_fdw/postgres_fdw.c            | 683 ++++++++++++++++++++++---
contrib/postgres_fdw/postgres_fdw.h            |  14 +
contrib/postgres_fdw/sql/postgres_fdw.sql      | 105 +++-
doc/src/sgml/fdwhandler.sgml                   | 180 ++++++-
doc/src/sgml/postgres-fdw.sgml                 |   9 +
src/backend/commands/explain.c                 |  55 +-
src/backend/executor/execMain.c                |   1 +
src/backend/executor/nodeForeignscan.c         |  17 +-
src/backend/executor/nodeModifyTable.c         |  60 ++-
src/backend/nodes/copyfuncs.c                  |   2 +
src/backend/nodes/outfuncs.c                   |   2 +
src/backend/nodes/readfuncs.c                  |   1 +
src/backend/optimizer/plan/createplan.c        |  21 +
src/backend/optimizer/util/plancat.c           |  47 ++
src/include/foreign/fdwapi.h                   |  20 +
src/include/nodes/execnodes.h                  |   2 +
src/include/nodes/pg_list.h                    |   3 +
src/include/nodes/plannodes.h                  |   2 +
src/include/optimizer/plancat.h                |   2 +
21 files changed, 1515 insertions(+), 125 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1agzA4-00074P-QW@gemulon.postgresql.org>
Permalink:  ../E1agzA4-00074P-QW@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1agzA4-00074P-QW@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: Directly modify foreign tables.
  In-Reply-To: <E1agzA4-00074P-QW@gemulon.postgresql.org>
  References: <E1agzA4-00074P-QW@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox