pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Doc: desultory copy-editing for v10 release notes.
4+ messages / 2 participants
[nested] [flat]

* pgsql: Doc: desultory copy-editing for v10 release notes.
@ 2017-07-10 00:11  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Tom Lane @ 2017-07-10 00:11 UTC (permalink / raw)
  To: pgsql-committers

Doc: desultory copy-editing for v10 release notes.

Improve many item descriptions, improve markup, relocate some items
that seemed to be in the wrong section.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/749eceff4a1f9740391b126c81af9fd4bf3b1eaa

Modified Files
--------------
doc/src/sgml/release-10.sgml | 825 ++++++++++++++++++++++---------------------
1 file changed, 432 insertions(+), 393 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pgsql: Doc: desultory copy-editing for v10 release notes.
@ 2017-07-10 01:09  Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Amit Langote @ 2017-07-10 01:09 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-committers

On 2017/07/10 9:11, Tom Lane wrote:
> Doc: desultory copy-editing for v10 release notes.
> 
> Improve many item descriptions, improve markup, relocate some items
> that seemed to be in the wrong section.
> 
> Branch
> ------
> master
> 
> Details
> -------
> https://git.postgresql.org/pg/commitdiff/749eceff4a1f9740391b126c81af9fd4bf3b1eaa

I see you updated text for the partitioning item:

@@ -1574,7 +1553,7 @@
       <para>
        Add table <link linkend="SQL-CREATETABLE-PARTITION">partitioning
        syntax</> that automatically creates partition constraints and
-       <command>INSERT</> routing (Amit Langote)
+       handles routing of tuple insertions and updates (Amit Langote)
       </para>

Although I like the new text better, I'm afraid that we don't support
routing updates yet, only inserts.

create table p (a int) partition by list (a);
create table p1 partition of p for values in (1);
insert into p values (1);

update p set a = a + 1;
ERROR:  new row for relation "p1" violates partition constraint
DETAIL:  Failing row contains (2).

Routing of updates is being worked on for PG 11 [1].

Attached patch removes "and updates".

Thanks,
Amit

[1] https://commitfest.postgresql.org/14/1023/

-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

Attachments:

no-update-routing-in-10.patch (text/plain, 520B) download diff --git a/doc/src/sgml/release-10.sgml b/doc/src/sgml/release-10.sgml index debaa80099..7ecb66f7af 100644 --- a/doc/src/sgml/release-10.sgml +++ b/doc/src/sgml/release-10.sgml @@ -1553,7 +1553,7 @@ <para> Add table <link linkend="SQL-CREATETABLE-PARTITION">partitioning syntax</> that automatically creates partition constraints and - handles routing of tuple insertions and updates (Amit Langote) + handles routing of tuple insertions (Amit Langote) </para> <para>
^ permalink raw reply [nested|flat] 4+ messages in thread

* Re: pgsql: Doc: desultory copy-editing for v10 release notes.
@ 2017-07-10 03:36  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
  0 siblings, 1 reply; 4+ messages in thread

From: Tom Lane @ 2017-07-10 03:36 UTC (permalink / raw)
  To: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>; +Cc: pgsql-committers

Amit Langote <Langote_Amit_f8@lab.ntt.co.jp> writes:
> On 2017/07/10 9:11, Tom Lane wrote:
>> Doc: desultory copy-editing for v10 release notes.

> I see you updated text for the partitioning item:

>         syntax</> that automatically creates partition constraints and
> -       <command>INSERT</> routing (Amit Langote)
> +       handles routing of tuple insertions and updates (Amit Langote)

> Although I like the new text better, I'm afraid that we don't support
> routing updates yet, only inserts.

Hm?  We correctly handle updates that don't change the partition key
columns, as well as deletes, no?  The previous text made it sound
like *only* the insert case worked properly.

It might be worth mentioning that you can't move a row into another
partition via UPDATE.  Or maybe that's more detail than we need here.
Not sure.

			regards, tom lane


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pgsql: Doc: desultory copy-editing for v10 release notes.
@ 2017-07-10 04:38  Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Amit Langote @ 2017-07-10 04:38 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers

On 2017/07/10 12:36, Tom Lane wrote:
> Amit Langote <Langote_Amit_f8@lab.ntt.co.jp> writes:
>> On 2017/07/10 9:11, Tom Lane wrote:
>>> Doc: desultory copy-editing for v10 release notes.
> 
>> I see you updated text for the partitioning item:
> 
>>         syntax</> that automatically creates partition constraints and
>> -       <command>INSERT</> routing (Amit Langote)
>> +       handles routing of tuple insertions and updates (Amit Langote)
> 
>> Although I like the new text better, I'm afraid that we don't support
>> routing updates yet, only inserts.
> 
> Hm?  We correctly handle updates that don't change the partition key
> columns, as well as deletes, no?

That's true.

>  The previous text made it sound like *only* the insert case worked properly.

So, as long as an UPDATE doesn't change the partition key of a tuple, it's
being "routed" correctly, that is, put back into the same partition.

To me, the phrase "routing updates" meant "re-routing" a tuple when the
partition key change requires it, but I may be wrong.

> It might be worth mentioning that you can't move a row into another
> partition via UPDATE.  Or maybe that's more detail than we need here.
> Not sure.

Maybe, we can leave that detail out of the release notes.

Thanks,
Amit



-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2017-07-10 04:38 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-07-10 00:11 pgsql: Doc: desultory copy-editing for v10 release notes. Tom Lane <tgl@sss.pgh.pa.us>
2017-07-10 01:09 ` Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
2017-07-10 03:36   ` Tom Lane <tgl@sss.pgh.pa.us>
2017-07-10 04:38     ` Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>

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