Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yrc74-00069B-40 for pgsql-committers@arkaria.postgresql.org; Mon, 11 May 2015 01:02:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yrc73-0002SN-BC for pgsql-committers@arkaria.postgresql.org; Mon, 11 May 2015 01:02:29 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Yrc72-0002SH-NM for pgsql-committers@postgresql.org; Mon, 11 May 2015 01:02:28 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Yrc70-0004XO-Dk for pgsql-committers@postgresql.org; Mon, 11 May 2015 01:02:27 +0000 Received: from intern.anarazel.de (unknown [50.242.71.202]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 5D3B5860001; Mon, 11 May 2015 03:02:25 +0200 (CEST) Date: Mon, 11 May 2015 03:02:22 +0200 From: Andres Freund To: Tom Lane , Robert Haas Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Code review for foreign/custom join pushdown patch. Message-ID: <20150511010222.GJ12950@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -4.2 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org 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. Especially with inheritance now being allowed it's quite possible people will come up with complicated partitioning scheme where it's good where the server the user is interacting with does as little as possible. Possibly it'll also allow to reduce slow network traffic. Greetings, Andres Freund -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers