Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1sFA-0003KR-Gh for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Mar 2019 12:35:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h1sF8-0007A2-S2 for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Mar 2019 12:35:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1sF8-00079v-HO for pgsql-hackers@lists.postgresql.org; Thu, 07 Mar 2019 12:35:22 +0000 Received: from tama50.ecl.ntt.co.jp ([129.60.39.147]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h1sF5-0001Vj-7M for pgsql-hackers@lists.postgresql.org; Thu, 07 Mar 2019 12:35:21 +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 x27CZEf3029787; Thu, 7 Mar 2019 21:35:14 +0900 Received: from vc2.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc2.ecl.ntt.co.jp (Postfix) with ESMTP id 1E31263961D; Thu, 7 Mar 2019 21:35:14 +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 0ACC263960B; Thu, 7 Mar 2019 21:35:14 +0900 (JST) Received: from [IPv6:::1] (unknown [129.60.241.75]) by jcms-pop21.ecl.ntt.co.jp (Postfix) with ESMTPSA id D21004003DF; Thu, 7 Mar 2019 21:35:13 +0900 (JST) Message-ID: <5C810FF7.8010802@lab.ntt.co.jp> Date: Thu, 07 Mar 2019 21:35:03 +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: Update does not move row across foreign partitions in v11 References: <20190227193114.GA19279@alvherre.pgsql> <14069ba3-20bb-529b-f104-4e282dc3e322@lab.ntt.co.jp> <5C7F46CC.6010801@lab.ntt.co.jp> <396fc4ca-eeba-e8af-cd72-90861469d3da@lab.ntt.co.jp> <5C7F645E.2080805@lab.ntt.co.jp> <16381946-c020-7099-f8fc-f5a8e11d6fb5@lab.ntt.co.jp> In-Reply-To: <16381946-c020-7099-f8fc-f5a8e11d6fb5@lab.ntt.co.jp> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CC-Mail-RelayStamp: 1 To: Amit Langote Cc: David Rowley , PostgreSQL Hackers , Robert Haas , Alvaro Herrera , Derek Hans X-TM-AS-MML: disable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk (2019/03/06 15:34), Amit Langote wrote: > On 2019/03/06 15:10, Etsuro Fujita wrote: >> --- a/doc/src/sgml/ddl.sgml >> +++ b/doc/src/sgml/ddl.sgml >> @@ -3376,6 +3376,13 @@ ALTER TABLE measurement ATTACH PARTITION >> measurement_y2008m02 >> >> >> >> + >> + >> +UPDATE row movement is not supported in the cases >> + where the old row is contained in a foreign table partition. >> + >> + >> >> ISTM that it's also a limitation that rows can be moved from a local >> partition to a foreign partition *if the FDW support tuple routing*, so I >> would vote for mentioning that as well here. > > Thanks for checking. > > I have updated the patch to include a line about this in the same > paragraph, because maybe we don't need to make a new for it. Thanks for the patch! The patch looks good to me, but one thing I'm wondering is: as suggested by David, it would be better to rephrase this mention in the UPDATE reference page, in a single commit: "Currently, rows cannot be moved from a partition that is a foreign table to some other partition, but they can be moved into a foreign table if the foreign data wrapper supports it." I don't think it needs to be completely rephrased; it's enough for me to rewrite it to something like this: "Currently, rows cannot be moved from a foreign-table partition to some other partition, but they can be moved into a foreign-table partition if the foreign data wrapper supports tuple routing." And to make maintenance work easy, I think it might be better to just put this on the limitations section of 5.10. Table Partitioning. What do you think about that? Best regards, Etsuro Fujita