Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bO3Hg-0007LU-NN for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Jul 2016 13:36:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bO3Hg-0001wU-6J for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Jul 2016 13:36:04 +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 1bO3Hf-0001vo-2d for pgsql-hackers@postgresql.org; Fri, 15 Jul 2016 13:36:03 +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 1bO3Hc-0002QG-61 for pgsql-hackers@postgresql.org; Fri, 15 Jul 2016 13:36:02 +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 u6FDZs14023275; Fri, 15 Jul 2016 09:35:54 -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: <28ab7288-84f5-aab4-3ef7-cf1ca6e9a291@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> <2270.1468550932@sss.pgh.pa.us> <28ab7288-84f5-aab4-3ef7-cf1ca6e9a291@lab.ntt.co.jp> Comments: In-reply-to Etsuro Fujita message dated "Fri, 15 Jul 2016 21:55:45 +0900" Date: Fri, 15 Jul 2016 09:35:54 -0400 Message-ID: <23274.1468589754@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: > On 2016/07/15 11:48, Tom Lane wrote: >> 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. > So, I'd vote for leaving that for future work if necessary. Makes sense to me. > Here is a patch for that redesign proposed by you; reverts commits > fbe5a3fb73102c2cfec11aaaa4a67943f4474383 and > 5d4171d1c70edfe3e9be1de9e66603af28e3afe1, adds changes for that redesign > to the core, and adjusts the postgres_fdw code to that changes. Also, I > rearranged the postgres_fdw regression tests to match that changes. OK, I'll review this later today. 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