Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fla7l-0002he-AY for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Aug 2018 13:28:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fla7j-0002v2-BK for pgsql-hackers@arkaria.postgresql.org; Fri, 03 Aug 2018 13:28:07 +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.89) (envelope-from ) id 1fla7j-0002uu-0l for pgsql-hackers@lists.postgresql.org; Fri, 03 Aug 2018 13:28:07 +0000 Received: from tama50.ecl.ntt.co.jp ([129.60.39.147]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fla7f-000836-Gz for pgsql-hackers@postgresql.org; Fri, 03 Aug 2018 13:28:05 +0000 Received: from vc2.ecl.ntt.co.jp (vc2.ecl.ntt.co.jp [129.60.86.154]) by tama50.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id w73DRu4q010998; Fri, 3 Aug 2018 22:27:56 +0900 Received: from vc2.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 6FD6463990A; Fri, 3 Aug 2018 22:27:56 +0900 (JST) Received: from jcms-pop21.ecl.ntt.co.jp (jcms-pop21.ecl.ntt.co.jp [129.60.87.134]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 641F6639909; Fri, 3 Aug 2018 22:27:56 +0900 (JST) Received: from [IPv6:::1] (unknown [129.60.241.75]) by jcms-pop21.ecl.ntt.co.jp (Postfix) with ESMTPSA id 5AC684005EA; Fri, 3 Aug 2018 22:27:56 +0900 (JST) Message-ID: <5B645868.6030609@lab.ntt.co.jp> Date: Fri, 03 Aug 2018 22:28:08 +0900 From: Etsuro Fujita User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 Subject: Re: Expression errors with "FOR UPDATE" and postgres_fdw with partition wise join enabled. References: <5AFC0865.8050802@lab.ntt.co.jp> <5B1E5071.1000704@lab.ntt.co.jp> <5B23A964.9020800@lab.ntt.co.jp> <5B28FB19.3090809@lab.ntt.co.jp> <20180703163519.tsigyic5xefunv74@alap3.anarazel.de> <5B3C2A4E.5030901@lab.ntt.co.jp> <5B4F2BE9.3000304@lab.ntt.co.jp> <5B55886F.5090906@lab.ntt.co.jp> <5B5712C8.9030404@lab.ntt.co.jp> <5B59BA55.30200@lab.ntt.co.jp> <5B619D23.4010000@lab.ntt.co.jp> <5B62E8E3.80604! 02@lab.ntt.co.jp> <5358.1533241519@sss.pgh.pa.us> <5B64562A.9000404@lab.ntt.co.jp> In-Reply-To: <5B64562A.9000404@lab.ntt.co.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-CC-Mail-RelayStamp: 1 To: Tom Lane Cc: Robert Haas , Andres Freund , Ashutosh Bapat , Rajkumar Raghuwanshi , pgsql-hackers X-TM-AS-MML: disable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk (2018/08/03 22:18), Etsuro Fujita wrote: > Here is a patch for refusing to generate PWJ paths when WRVs are involved: > > * We no longer need to handle WRVs, so I've simplified > build_joinrel_tlist() and setrefs.c to what they were before > partition-wise join went in, as in the previous patch. > > * attr_needed data for each child is used for building child-joins' > tlists, but I think we can build those by applying > adjust_appendrel_attrs to the parent's tlists, without attr_needed. So, > I've also removed that as in the previous patch. One thing to add: as for the latter, we don't need the changes to placeholder.c either, so I've also simplified that to what they were before partition-wise join went in. Best regards, Etsuro Fujita