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 1h1PlX-0000eu-Ij for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Mar 2019 06:10:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h1PlV-0008Q6-8c for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Mar 2019 06:10:53 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1PlV-0008Pz-0i for pgsql-hackers@lists.postgresql.org; Wed, 06 Mar 2019 06:10:53 +0000 Received: from tama500.ecl.ntt.co.jp ([129.60.39.148]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h1PlS-0002iS-4X for pgsql-hackers@lists.postgresql.org; Wed, 06 Mar 2019 06:10:52 +0000 Received: from vc1.ecl.ntt.co.jp (vc1.ecl.ntt.co.jp [129.60.86.153]) by tama500.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id x266AicF018744; Wed, 6 Mar 2019 15:10:44 +0900 Received: from vc1.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id B5794EA7971; Wed, 6 Mar 2019 15:10:44 +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 AABBDEA7803; Wed, 6 Mar 2019 15:10:44 +0900 (JST) Received: from [IPv6:::1] (unknown [129.60.241.75]) by jcms-pop21.ecl.ntt.co.jp (Postfix) with ESMTPSA id 96698400397; Wed, 6 Mar 2019 15:10:44 +0900 (JST) Message-ID: <5C7F645E.2080805@lab.ntt.co.jp> Date: Wed, 06 Mar 2019 15:10:38 +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> In-Reply-To: <396fc4ca-eeba-e8af-cd72-90861469d3da@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 13:18), Amit Langote wrote: > The main problem here is indeed that the limitation is not listed under > the partitioning limitations in ddl.sgml, where it's easier to notice than > in the UPDATE's page. Agreed. > I've updated my patch to remove the release-11.sgml > changes. Thanks for the updated patch! --- 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. Best regards, Etsuro Fujita