Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZWQDT-0000PH-13 for pgsql-performance@arkaria.postgresql.org; Mon, 31 Aug 2015 14:37:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZWQDS-00044Z-Ec for pgsql-performance@arkaria.postgresql.org; Mon, 31 Aug 2015 14:37:46 +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) (envelope-from ) id 1ZWQBq-0002EZ-JK for pgsql-performance@postgresql.org; Mon, 31 Aug 2015 14:36:06 +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) (envelope-from ) id 1ZWQBn-0003v0-En for pgsql-performance@postgresql.org; Mon, 31 Aug 2015 14:36: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 t7VEa1wh005677; Mon, 31 Aug 2015 10:36:01 -0400 From: Tom Lane To: "=?gb18030?B?sKTM38jL?=" <2363541664@qq.com> cc: "=?gb18030?B?cGdzcWwtcGVyZm9ybWFuY2U=?=" Subject: Re: is there any way we can push join predicate into inner table In-reply-to: References: Comments: In-reply-to "=?gb18030?B?sKTM38jL?=" <2363541664@qq.com> message dated "Mon, 31 Aug 2015 21:51:54 +0800" Date: Mon, 31 Aug 2015 10:36:01 -0400 Message-ID: <5676.1441031761@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-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org "=?gb18030?B?sKTM38jL?=" <2363541664@qq.com> writes: > So, the question is, is there any way we can push join predicate into inner table ( we can disable merge join and hash join to get NL Join, but join predicate is not able to push into inner table )? You probably need to turn on use_remote_estimate; postgres_fdw won't consider parameterized paths without that, because it has no way to compare costs. regards, tom lane -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance