Re: Guidance on INSERT RETURNING order - Mailing list pgsql-general

From Thorsten Glaser
Subject Re: Guidance on INSERT RETURNING order
Date
Msg-id 3b1117cc-fe46-1ca0-d0f-92304c6fc79@evolvis.org
Whole thread Raw
In response to Re: Guidance on INSERT RETURNING order  (Federico <cfederico87@gmail.com>)
Responses Re: Guidance on INSERT RETURNING order
List pgsql-general
On Tue, 11 Apr 2023, Federico wrote:

>Of course sorting the returned ids is only viable when using a serial

Yes, which is why I pointed out it doesn’t have to be.

>or identity column, that's why in the general case I've mentioned the
>insert with sentinel column

But it was pointed out that that’s not guaranteed either, unless you add
that sentinel column to the table itself…

bye,
//mirabilos
--
15:41⎜<Lo-lan-do:#fusionforge> Somebody write a testsuite for helloworld :-)



pgsql-general by date:

Previous
From: Federico
Date:
Subject: Re: Guidance on INSERT RETURNING order
Next
From: Rob Sargent
Date:
Subject: Re: Guidance on INSERT RETURNING order