Re: Document ordering guarantees on INSERT/UPDATE RETURNING clause

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Shay Rojansky <roji(at)roji(dot)org>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Document ordering guarantees on INSERT/UPDATE RETURNING clause
Date: 2022-02-26 13:25:22
Message-ID: CAKFQuwZYmqiRq5nTh8ghcfSZ0Qsx6AHbzNArMLLEX0xfeSwLOg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Feb 26, 2022 at 5:42 AM Shay Rojansky <roji(at)roji(dot)org> wrote:

> FWIW I've received feedback from a SQL Server engineer that one definitely
> should *not* depend on such ordering there, and that future optimizations
> (e.g. parallel insertion of many rows) could result in row ordering which
> differs from the lexical ordering of the VALUES clause.
>

> That seems very reasonable; if the situation is similar on PostgreSQL,
> then I'd suggest making that very clear in the INSERT[2] and UPDATE[3] docs.
>

There is clearly no mention of such a guarantee in our documentation.

David J.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Julien Rouhaud 2022-02-26 14:59:01 Re: Document ordering guarantees on INSERT/UPDATE RETURNING clause
Previous Message Shay Rojansky 2022-02-26 12:41:47 Document ordering guarantees on INSERT/UPDATE RETURNING clause