From: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
To: Etsuro Fujita <fujita.etsuro@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: Fri, 8 Mar 2019 11:06:55 +0900
Message-ID: <e8269ccf-ad98-9c59-6bae-2c44c900c12e@lab.ntt.co.jp> (raw)
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>
Thanks for the review.
On 2019/03/07 21:35, Etsuro Fujita wrote:
> 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?
I agree, so updated the patch this way.
David, can you confirm if the rewritten text reads unambiguous or perhaps
suggest a better wording?
Thanks,
Amit
Attachments:document-update-row-movement-limitation-v3.patch (text/plain, 1.6K) downloaddiff --git a/doc/src/sgml/ddl.sgml b/doc/src/sgml/ddl.sgmlindex 4c1d2f607b..1e09f87803 100644--- a/doc/src/sgml/ddl.sgml+++ b/doc/src/sgml/ddl.sgml@@ -3879,6 +3879,14 @@ ALTER TABLE measurement ATTACH PARTITION measurement_y2008m02
<listitem>
<para>
+ 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.+ </para>+ </listitem>++ <listitem>+ <para>
<literal>BEFORE ROW</literal> triggers, if necessary, must be defined
on individual partitions, not the partitioned table.
</para>
diff --git a/doc/src/sgml/ref/update.sgml b/doc/src/sgml/ref/update.sgmlindex 77430a586c..adc71ce80c 100644--- a/doc/src/sgml/ref/update.sgml+++ b/doc/src/sgml/ref/update.sgml@@ -291,9 +291,9 @@ UPDATE <replaceable class="parameter">count</replaceable>
concurrent <command>UPDATE</command> or <command>DELETE</command> on the
same row may miss this row. For details see the section
<xref linkend="ddl-partitioning-declarative-limitations"/>.
- 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.+ 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.
</para>
</refsect1>
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: Langote_Amit_f8@lab.ntt.co.jp, fujita.etsuro@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: <e8269ccf-ad98-9c59-6bae-2c44c900c12e@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> <e8269ccf-ad98-9c59-6bae-2c44c900c12e@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