Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1afVwO-0005Mt-MD for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Mar 2016 17:06:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1afVwO-0001He-8q for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Mar 2016 17:06:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1afVwM-0001Fb-Ds for pgsql-hackers@postgresql.org; Mon, 14 Mar 2016 17:05:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1afVwJ-0006Pw-GB for pgsql-hackers@postgresql.org; Mon, 14 Mar 2016 17:05:58 +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 u2EH5mJE003222; Mon, 14 Mar 2016 13:05:48 -0400 From: Tom Lane To: Robert Haas cc: Etsuro Fujita , Andres Freund , "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: References: <20160312031502.lqtbqnqor4vji62k@alap3.anarazel.de> <20160312194625.txlzu22xykgpu66n@alap3.anarazel.de> <56E6240E.5090301@lab.ntt.co.jp> <18299.1457923919@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Mon, 14 Mar 2016 09:31:14 -0400" Date: Mon, 14 Mar 2016 13:05:48 -0400 Message-ID: <3221.1457975148@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 Robert Haas writes: > On Sun, Mar 13, 2016 at 10:51 PM, Tom Lane wrote: >> 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. > I think we should just fix build_simple_rel() so that it doesn't fail > if there is no user mapping. It can just set rel->umid to InvalidOid > in that case, and if necessary we can adjust the code elsewhere to > tolerate that. This wasn't an intentional behavior change, and I > think we should just put things back to the way they were. So, allow rel->umid to be InvalidOid if there's no user mapping, and when dealing with a join, allow combining when both sides have InvalidOid? 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