Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aea1F-0003Ny-9a for pgsql-committers@arkaria.postgresql.org; Sat, 12 Mar 2016 03:15:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aea1E-00073D-Gx for pgsql-committers@arkaria.postgresql.org; Sat, 12 Mar 2016 03:15:08 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aea1E-00072j-0h for pgsql-committers@postgresql.org; Sat, 12 Mar 2016 03:15:08 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aea1B-0002Ka-3Z for pgsql-committers@postgresql.org; Sat, 12 Mar 2016 03:15:06 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A8F5220416 for ; Fri, 11 Mar 2016 22:15:03 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Fri, 11 Mar 2016 22:15:03 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=qMCtCstXRdiXVM0kRk8mBoTpPQk=; b=Z/7Az SmhWwN2Ro77phKfP5uh6dnl2rK0OYD8DfSy7nOKYfbs+TC8oLJd5KkP6b93xJQPK qLnJVLZUcuGNzK43eHM84RQqLEKRX/WLc8d7RXltnup4NLZSoOHtCtzv6/BRGgFQ mAQm6P7vItqKnGScRhZQG0Npeg8XpcJSZ3lzGo= X-Sasl-enc: yAL9WLWXc6dsfrbPT3TbAe3OoxLxq69TTJc1JwHTMOeK 1457752503 Received: from intern.anarazel.de (unknown [184.23.178.130]) by mail.messagingengine.com (Postfix) with ESMTPA id 5D6B86800EB; Fri, 11 Mar 2016 22:15:03 -0500 (EST) Date: Fri, 11 Mar 2016 19:15:02 -0800 From: Andres Freund To: Robert Haas , 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 Message-ID: <20160312031502.lqtbqnqor4vji62k@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: -2.6 (--) 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 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