Re: Guidance on INSERT RETURNING order

From: Thorsten Glaser <tg(at)evolvis(dot)org>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Guidance on INSERT RETURNING order
Date: 2023-04-11 21:17:27
Message-ID: 3b1117cc-fe46-1ca0-d0f-92304c6fc79@evolvis.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 :-)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rob Sargent 2023-04-11 21:17:36 Re: Guidance on INSERT RETURNING order
Previous Message Federico 2023-04-11 21:07:31 Re: Guidance on INSERT RETURNING order