Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNtBa-0003IB-UM for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Jul 2016 02:49:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bNtBa-0000YC-7D for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Jul 2016 02:49:06 +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_2) (envelope-from ) id 1bNtBY-0000Wf-C7 for pgsql-hackers@postgresql.org; Fri, 15 Jul 2016 02:49:04 +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_2) (envelope-from ) id 1bNtBR-0002rx-RM for pgsql-hackers@postgresql.org; Fri, 15 Jul 2016 02:49:03 +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 u6F2mqUj002271; Thu, 14 Jul 2016 22:48:52 -0400 From: Tom Lane To: Etsuro Fujita cc: Ashutosh Bapat , pgsql-hackers Subject: Re: Oddity in handling of cached plans for FDW queries In-reply-to: <122d7752-7fe4-f561-4348-34b398d46ec1@lab.ntt.co.jp> References: <6085.1468513930@sss.pgh.pa.us> <10736.1468522173@sss.pgh.pa.us> <122d7752-7fe4-f561-4348-34b398d46ec1@lab.ntt.co.jp> Comments: In-reply-to Etsuro Fujita message dated "Fri, 15 Jul 2016 11:37:51 +0900" Date: Thu, 14 Jul 2016 22:48:52 -0400 Message-ID: <2270.1468550932@sss.pgh.pa.us> X-Pg-Spam-Score: -3.2 (---) 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: > One thing I'm not sure about is: should we insist that a join can be > pushed down only if the checkAsUser fields of the relevant RTEs are > equal in the case where user mappings are meaningless to the FDW, like > file_fdw? If we add a mechanism to let us know that the FDW doesn't care, we could relax the requirement for such cases. I don't have a strong opinion on whether that's worthwhile. It'd depend in part on how many FDWs there are that don't care, versus those that do; and I have no idea about that. 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