pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Code review for foreign/custom join pushdown patch.
Date: Sun, 10 May 2015 21:14:08 -0400
Message-ID: <16109.1431306848@sss.pgh.pa.us> (raw)
In-Reply-To: <20150511010222.GJ12950@alap3.anarazel.de>
References: <E1YrW5l-00034Z-Ia@gemulon.postgresql.org>
	<20150511010222.GJ12950@alap3.anarazel.de>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Andres Freund <andres@anarazel.de> writes:
> On 2015-05-10 18:36:45 +0000, Tom Lane wrote:
>> * Consider foreign joins only between foreign tables on the same server,
>> rather than between any two foreign tables with the same underlying FDW
>> handler function.  In most if not all cases, the FDW would simply have had
>> to apply the same-server restriction itself (far more expensively, both for
>> lack of caching and because it would be repeated for each combination of
>> input sub-joins), or else risk nasty bugs.  Anyone who's really intent on
>> doing something outside this restriction can always use the
>> set_join_pathlist_hook.

> Hm. I'm not sure I can agree with that judgement. It does not seem that
> far fetched to want to push joins between two different FDW servers to
> one FDW.

What I doubt is that people can do that *correctly*.  See my
counterexamples in the pgsql-hackers thread.  In any case, as also noted
on that thread, an FDW that wants to adjust this behavior could do so by
changing RelOptInfo.serverid to match the ID of the selected common server
during GetForeignPaths.

			regards, tom lane


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



view thread (3+ messages)

Message-ID: <16109.1431306848@sss.pgh.pa.us>
Permalink:  ../16109.1431306848@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16109.1431306848@sss.pgh.pa.us

 · 

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, andres@anarazel.de, robertmhaas@gmail.com
  Subject: Re: pgsql: Code review for foreign/custom join pushdown patch.
  In-Reply-To: <16109.1431306848@sss.pgh.pa.us>
  References: <E1YrW5l-00034Z-Ia@gemulon.postgresql.org> <20150511010222.GJ12950@alap3.anarazel.de> <16109.1431306848@sss.pgh.pa.us>

* 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