Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1afIc4-0006hD-Vv for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Mar 2016 02:52:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1afIc4-0000uZ-Fl for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Mar 2016 02:52: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 1afIc3-0000uQ-Nv for pgsql-hackers@postgresql.org; Mon, 14 Mar 2016 02:52:07 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1afIc0-0001VG-O8 for pgsql-hackers@postgresql.org; Mon, 14 Mar 2016 02:52:06 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u2E2pxMQ018300; Sun, 13 Mar 2016 22:51:59 -0400 From: Tom Lane To: Etsuro Fujita cc: Andres Freund , Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: Re: [COMMITTERS] pgsql: Only try to push down foreign joins if the user mapping OIDs mat In-reply-to: <56E6240E.5090301@lab.ntt.co.jp> References: <20160312031502.lqtbqnqor4vji62k@alap3.anarazel.de> <20160312194625.txlzu22xykgpu66n@alap3.anarazel.de> <56E6240E.5090301@lab.ntt.co.jp> Comments: In-reply-to Etsuro Fujita message dated "Mon, 14 Mar 2016 11:38:06 +0900" Date: Sun, 13 Mar 2016 22:51:59 -0400 Message-ID: <18299.1457923919@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Etsuro Fujita writes: > On 2016/03/13 4:46, Andres Freund wrote: >> ... The difference apears to be the >> check that's now in build_simple_rel() - there was nothing hitting the >> user mapping code before for file_fdw. > Exactly. > I'm not sure it's worth complicating the code to keep that behavior, so > I'd vote for adding the change notice to 9.6 release notes or something > like that in addition to updating file-fdw.sgml. Perhaps it would be useful for an FDW to be able to specify that user mappings are meaningless to it? And then bypass this check for such FDWs? I'm not really sold on enforcing that people create meaningless user mappings. For one thing, they're likely to be sloppy about it, which could lead to latent security problems if the FDW later acquires a concept that user mappings mean something. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers