pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add a GetForeignUpperPaths callback function for FDWs.
Date: Tue, 15 Mar 2016 00:04:57 +0000
Message-ID: <E1afcTp-0003wv-QJ@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Add a GetForeignUpperPaths callback function for FDWs.

This is basically like the just-added create_upper_paths_hook, but
control is funneled only to the FDW responsible for all the baserels
of the current query; so providing such a callback is much less likely
to add useless overhead than using the hook function is.

The documentation is a bit sketchy.  We'll likely want to improve it,
and/or adjust the call conventions, when we get some experience with
actually using this callback.  Hopefully somebody will find time to
experiment with it before 9.6 feature freeze.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/101fd9349eddb7e9ed84a239145d5230a9bc7336

Modified Files
--------------
doc/src/sgml/fdwhandler.sgml          | 43 ++++++++++++++++++++++++++++++++---
src/backend/optimizer/README          |  5 +++-
src/backend/optimizer/plan/planner.c  | 16 ++++++++-----
src/backend/optimizer/util/pathnode.c | 14 ++++++------
src/include/foreign/fdwapi.h          |  6 +++++
5 files changed, 67 insertions(+), 17 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: <E1afcTp-0003wv-QJ@gemulon.postgresql.org>
Permalink:  ../E1afcTp-0003wv-QJ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1afcTp-0003wv-QJ@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Add a GetForeignUpperPaths callback function for FDWs.
  In-Reply-To: <E1afcTp-0003wv-QJ@gemulon.postgresql.org>
  References: <E1afcTp-0003wv-QJ@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