From: Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
To: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Cc: David Rowley <david.rowley@2ndquadrant.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Derek Hans <derek.hans@gmail.com>
Subject: Re: Update does not move row across foreign partitions in v11
Date: Thu, 07 Mar 2019 21:35:03 +0900
Message-ID: <5C810FF7.8010802@lab.ntt.co.jp> (raw)
In-Reply-To: <16381946-c020-7099-f8fc-f5a8e11d6fb5@lab.ntt.co.jp>
References: <CAGrP7a3Xc1Qy_B2WJcgAD8uQTS_NDcJn06O5mtS_Ne1nYhBsyw@mail.gmail.com>
<20190227193114.GA19279@alvherre.pgsql>
<CAGrP7a0VhvM23m_kSsXUc1iAj4Z5DkyBaqq=fhxAS8VxNaFZ5w@mail.gmail.com>
<CAKJS1f-kwK71B8TV7tbe5dpbhVvR-7J5TqHCiQkw8pbwdwD-dw@mail.gmail.com>
<e8281e87-c5e6-25d3-f92e-e850c27c76e9@lab.ntt.co.jp>
<CAKJS1f9RGnd=fdEKWqyS3OBBUsR1Roy4wJmzadGhRe=Qf2_0LQ@mail.gmail.com>
<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>
(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
>> </para>
>> </listitem>
>>
>> +<listitem>
>> +<para>
>> +<command>UPDATE</command> row movement is not supported in the cases
>> + where the old row is contained in a foreign table partition.
>> +</para>
>> +</listitem>
>>
>> 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<listitem> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: fujita.etsuro@lab.ntt.co.jp, Langote_Amit_f8@lab.ntt.co.jp, david.rowley@2ndquadrant.com, pgsql-hackers@lists.postgresql.org, robertmhaas@gmail.com, alvherre@2ndquadrant.com, derek.hans@gmail.com
Subject: Re: Update does not move row across foreign partitions in v11
In-Reply-To: <5C810FF7.8010802@lab.ntt.co.jp>
References: <CAGrP7a3Xc1Qy_B2WJcgAD8uQTS_NDcJn06O5mtS_Ne1nYhBsyw@mail.gmail.com> <20190227193114.GA19279@alvherre.pgsql> <CAGrP7a0VhvM23m_kSsXUc1iAj4Z5DkyBaqq=fhxAS8VxNaFZ5w@mail.gmail.com> <CAKJS1f-kwK71B8TV7tbe5dpbhVvR-7J5TqHCiQkw8pbwdwD-dw@mail.gmail.com> <e8281e87-c5e6-25d3-f92e-e850c27c76e9@lab.ntt.co.jp> <CAKJS1f9RGnd=fdEKWqyS3OBBUsR1Roy4wJmzadGhRe=Qf2_0LQ@mail.gmail.com> <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> <5C810FF7.8010802@lab.ntt.co.jp>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox