Re: Guidance on INSERT RETURNING order

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Federico <cfederico87(at)gmail(dot)com>
Cc: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, John Howroyd <jdhowroyd(at)googlemail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Guidance on INSERT RETURNING order
Date: 2023-04-15 13:40:44
Message-ID: 1678721.1681566044@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Federico <cfederico87(at)gmail(dot)com> writes:
> I think the tuple order would not be connected to the values, but be
> determined by the input order of the rows in the insert. So when using
> INSERT ... SELECT the tuple_order value would be determined by the
> output of the select, using the same logic as ROW_NUMBER.

We already rejected the idea that INSERT must preserve the order of
the incoming tuples. Please don't re-propose it with different
wording.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Federico 2023-04-15 14:08:40 Re: Guidance on INSERT RETURNING order
Previous Message Peter J. Holzer 2023-04-15 10:46:59 Re: JSON / ASP.NET AJAX Dates support in PostgreSQL