pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Robert Haas <rhaas@postgresql.org>
To: pgsql-hackers@postgresql.org
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Only try to push down foreign joins if the user mapping OIDs mat
Date: Fri, 11 Mar 2016 19:15:02 -0800
Message-ID: <20160312031502.lqtbqnqor4vji62k@alap3.anarazel.de> (raw)
In-Reply-To: <E1aOrwD-0004Af-Rm@gemulon.postgresql.org>
References: <E1aOrwD-0004Af-Rm@gemulon.postgresql.org>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Hi,

On 2016-01-28 19:09:01 +0000, Robert Haas wrote:
> Only try to push down foreign joins if the user mapping OIDs match.
> 
> Previously, the foreign join pushdown infrastructure left the question
> of security entirely up to individual FDWs, but it would be easy for
> a foreign data wrapper to inadvertently open up subtle security holes
> that way.  So, make it the core code's job to determine which user
> mapping OID is relevant, and don't attempt join pushdown unless it's
> the same for all relevant relations.
> 
> Per a suggestion from Tom Lane.  Shigeru Hanada and Ashutosh Bapat,
> reviewed by Etsuro Fujita and KaiGai Kohei, with some further
> changes by me.

I noticed that this breaks some citus regression tests in a minor
manner. Namely previously file_fdw worked without a user mapping, now it
doesn't appear to anymore.

This is easy enough to fix, and it's perfectly ok for us to fix this,
but I do wonder if that's not going to cause trouble for others.

Andres


-- 
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 (18+ messages)  latest in thread

Message-ID: <20160312031502.lqtbqnqor4vji62k@alap3.anarazel.de>
Permalink:  ../20160312031502.lqtbqnqor4vji62k@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20160312031502.lqtbqnqor4vji62k@alap3.anarazel.de

 · 

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: andres@anarazel.de, rhaas@postgresql.org, pgsql-hackers@postgresql.org
  Subject: Re: pgsql: Only try to push down foreign joins if the user mapping OIDs mat
  In-Reply-To: <20160312031502.lqtbqnqor4vji62k@alap3.anarazel.de>
  References: <E1aOrwD-0004Af-Rm@gemulon.postgresql.org> <20160312031502.lqtbqnqor4vji62k@alap3.anarazel.de>

* 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