Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byV09-0003qV-4K for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Oct 2016 02:28:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1byV08-0001qk-67 for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Oct 2016 02:28:36 +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 1byUyk-0000Iz-Ca for pgsql-hackers@postgresql.org; Mon, 24 Oct 2016 02:27:10 +0000 Received: from tama50.ecl.ntt.co.jp ([129.60.39.147]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1byUye-0006J9-Kl for pgsql-hackers@postgresql.org; Mon, 24 Oct 2016 02:27:09 +0000 Received: from vc1.ecl.ntt.co.jp (vc1.ecl.ntt.co.jp [129.60.86.153]) by tama50.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id u9O2R18m030736 for ; Mon, 24 Oct 2016 11:27:01 +0900 Received: from vc1.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 07C3A5F623; Mon, 24 Oct 2016 11:27:01 +0900 (JST) Received: from jcms-pop21.ecl.ntt.co.jp (jcms-pop21.ecl.ntt.co.jp [129.60.87.134]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id EEDD05F611; Mon, 24 Oct 2016 11:27:00 +0900 (JST) Received: from [127.0.0.1] (unknown [129.60.241.68]) by jcms-pop21.ecl.ntt.co.jp (Postfix) with ESMTP id EA1904003A5; Mon, 24 Oct 2016 11:27:00 +0900 (JST) Message-ID: <580D716B.1050600@lab.ntt.co.jp> Date: Mon, 24 Oct 2016 11:26:51 +0900 From: Tatsuro Yamada User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 MIME-Version: 1.0 Subject: Minor code improvement to postgresGetForeignJoinPaths Content-Type: multipart/mixed; boundary="------------090503060304030603090109" To: pgsql-hackers@postgresql.org X-TM-AS-MML: disable X-Pg-Spam-Score: -2.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 This is a multi-part message in MIME format. --------------090503060304030603090109 Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit Hi, The last argument of create_foreignscan_path called by postgresGetForeignJoinPaths is set to NULL, but it would be suitable to set it to NIL because the argument type is List. Please find attached a patch. Tatsuro Yamada NTT Open Source Software Center --------------090503060304030603090109 Content-Type: text/x-patch; name="postgresGetForeignJoinPaths.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="postgresGetForeignJoinPaths.patch" diff --git a/contrib/postgres_fdw/postgres_fdw.c b/contrib/postgres_fdw/postgres_fdw.c index daf0438..a5de611 100644 --- a/contrib/postgres_fdw/postgres_fdw.c +++ b/contrib/postgres_fdw/postgres_fdw.c @@ -4331,7 +4331,7 @@ postgresGetForeignJoinPaths(PlannerInfo *root, NIL, /* no pathkeys */ NULL, /* no required_outer */ epq_path, - NULL); /* no fdw_private */ + NIL); /* no fdw_private */ /* Add generated path into joinrel by add_path(). */ add_path(joinrel, (Path *) joinpath); --------------090503060304030603090109 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers --------------090503060304030603090109--