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: Wed, 6 Mar 2019 13:18:00 +0900
Message-ID: <396fc4ca-eeba-e8af-cd72-90861469d3da@lab.ntt.co.jp> (raw)
In-Reply-To: <5C7F46CC.6010801@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>
Fujita-san,
On 2019/03/06 13:04, Etsuro Fujita wrote:
> (2019/03/06 11:34), Amit Langote wrote:
>> Ah, indeed. In the documentation fix patch I'd posted, I also made
>> changes to release-11.sgml to link to the limitations section. (I'm
>> attaching it here for your reference.)
>
> I'm not sure it's a good idea to make changes to the release notes like
> that, because 1) that would make the release notes verbose, and 2) it
> might end up doing the same thing to items that have some limitations in
> the existing/future release notes (eg, FOR EACH ROW triggers on
> partitioned tables added to V11 has the limitation listed on the
> limitation section, so the same link would be needed.), for consistency.
OK, sure. It just seemed to me that the original complainer found it
quite a bit surprising that such a limitation is not mentioned in the
release notes, but maybe that's fine. It seems we don't normally list
feature limitations in the release notes, which as you rightly say, would
make them verbose.
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. I've updated my patch to remove the release-11.sgml
changes.
Thanks,
Amit
Attachments:document-update-row-movement-limitation.patch (text/plain, 592B) downloaddiff --git a/doc/src/sgml/ddl.sgml b/doc/src/sgml/ddl.sgmlindex 7bed4f56f0..3b20e73a61 100644--- 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>+
<listitem>
<para>
<literal>BEFORE ROW</literal> triggers, if necessary, must be defined
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: <396fc4ca-eeba-e8af-cd72-90861469d3da@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>
* 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