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: postgres_fdw: Push down aggregates to remote servers.
Date: Fri, 21 Oct 2016 14:08:17 +0000
Message-ID: <E1bxaUb-00076L-6G@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

postgres_fdw: Push down aggregates to remote servers.

Now that the upper planner uses paths, and now that we have proper hooks
to inject paths into the upper planning process, it's possible for
foreign data wrappers to arrange to push aggregates to the remote side
instead of fetching all of the rows and aggregating them locally.  This
figures to be a massive win for performance, so teach postgres_fdw to
do it.

Jeevan Chalke and Ashutosh Bapat.  Reviewed by Ashutosh Bapat with
additional testing by Prabhat Sahu.  Various mostly cosmetic changes
by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/7012b132d07c2b4ea15b0b3cb1ea9f3278801d98

Modified Files
--------------
contrib/postgres_fdw/deparse.c                 |  568 +++++++++--
contrib/postgres_fdw/expected/postgres_fdw.out | 1219 +++++++++++++++++++++++-
contrib/postgres_fdw/postgres_fdw.c            |  494 +++++++++-
contrib/postgres_fdw/postgres_fdw.h            |    5 +-
contrib/postgres_fdw/sql/postgres_fdw.sql      |  305 ++++++
src/backend/optimizer/plan/createplan.c        |   11 +-
6 files changed, 2452 insertions(+), 150 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: <E1bxaUb-00076L-6G@gemulon.postgresql.org>
Permalink:  ../E1bxaUb-00076L-6G@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1bxaUb-00076L-6G@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: postgres_fdw: Push down aggregates to remote servers.
  In-Reply-To: <E1bxaUb-00076L-6G@gemulon.postgresql.org>
  References: <E1bxaUb-00076L-6G@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