pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Etsuro Fujita <efujita@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: postgres_fdw: Perform the (ORDERED, NULL) upperrel operations re
Date: Tue, 02 Apr 2019 10:23:48 +0000
Message-ID: <E1hBGa4-0007MD-J4@gemulon.postgresql.org> (raw)

postgres_fdw: Perform the (ORDERED, NULL) upperrel operations remotely.

The upper-planner pathification allows FDWs to arrange to push down
different types of upper-stage operations to the remote side.  This
commit teaches postgres_fdw to do it for the (ORDERED, NULL) upperrel,
which is responsible for evaluating the query's ORDER BY ordering.
Since postgres_fdw is already able to evaluate that ordering remotely
for foreign baserels and foreign joinrels (see commit aa09cd242f et al.),
this adds support for that for foreign grouping relations.

Author: Etsuro Fujita
Reviewed-By: Antonin Houska and Jeff Janes
Discussion: https://postgr.es/m/87pnz1aby9.fsf@news-spur.riddles.org.uk

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ffab494a4d4676a71e830b2d7285eeeb5f2b53d7

Modified Files
--------------
contrib/postgres_fdw/deparse.c                 |  28 +-
contrib/postgres_fdw/expected/postgres_fdw.out | 167 +++++------
contrib/postgres_fdw/postgres_fdw.c            | 388 +++++++++++++++++++++++--
contrib/postgres_fdw/postgres_fdw.h            |  12 +-
4 files changed, 457 insertions(+), 138 deletions(-)



Message-ID: <E1hBGa4-0007MD-J4@gemulon.postgresql.org>
Permalink:  ../E1hBGa4-0007MD-J4@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hBGa4-0007MD-J4@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: efujita@postgresql.org
  Subject: Re: pgsql: postgres_fdw: Perform the (ORDERED, NULL) upperrel operations re
  In-Reply-To: <E1hBGa4-0007MD-J4@gemulon.postgresql.org>
  References: <E1hBGa4-0007MD-J4@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