pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Guidance on INSERT RETURNING order
Date: Wed, 12 Apr 2023 16:29:54 -0600
Message-ID: <0c1bbc5c-0215-5c27-5507-c8eb2e56f248@gmail.com> (raw)
In-Reply-To: <c422c4ef-a284-e45e-b968-27bff221e993@evolvis.org>
References: <CAN19dycS0oUorLOGgjxMX8NZq-hOA1RJrzwC4L3FxpMf4BQbBQ@mail.gmail.com>
	<95fbd8c8-2f7a-38a1-4a41-b2ac3763d89c@aklaver.com>
	<CAN19dyed0o5eCUYSEq30q39SpFmeZ7WSEHBfR042YYTVoipHcg@mail.gmail.com>
	<CACLU5mT5x-76uy_Rh821-WfnD3Z2iuMsZL4y1dsSBK2ypERcmA@mail.gmail.com>
	<c876553a-18f7-db6e-4972-76961f43a4ce@aklaver.com>
	<CACLU5mQYZY0ZwdTDUE6NTfn=7SbO_JJ5qhttED5xaqkps27kng@mail.gmail.com>
	<c422c4ef-a284-e45e-b968-27bff221e993@evolvis.org>


> This would be a nice solution… but the PK could be always generated,
> or not even sequential (UUIDs for example). If you’re developing
> schema-first the application would not even (need to) know about how
> the IDs are generated as it’s the DB that generates them.
>
> AIUI the OP’s an SQLAlchemy developer, which is an ORM. Therefore he
> needs a generic solution.

Or a different dev env. :)






view thread (56+ messages)  latest in thread

Message-ID: <0c1bbc5c-0215-5c27-5507-c8eb2e56f248@gmail.com>
Permalink:  ../0c1bbc5c-0215-5c27-5507-c8eb2e56f248@gmail.com/
Also on:    postgresql.org/message-id/0c1bbc5c-0215-5c27-5507-c8eb2e56f248@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: robjsargent@gmail.com
  Subject: Re: Guidance on INSERT RETURNING order
  In-Reply-To: <0c1bbc5c-0215-5c27-5507-c8eb2e56f248@gmail.com>
  References: <CAN19dycS0oUorLOGgjxMX8NZq-hOA1RJrzwC4L3FxpMf4BQbBQ@mail.gmail.com> <95fbd8c8-2f7a-38a1-4a41-b2ac3763d89c@aklaver.com> <CAN19dyed0o5eCUYSEq30q39SpFmeZ7WSEHBfR042YYTVoipHcg@mail.gmail.com> <CACLU5mT5x-76uy_Rh821-WfnD3Z2iuMsZL4y1dsSBK2ypERcmA@mail.gmail.com> <c876553a-18f7-db6e-4972-76961f43a4ce@aklaver.com> <CACLU5mQYZY0ZwdTDUE6NTfn=7SbO_JJ5qhttED5xaqkps27kng@mail.gmail.com> <c422c4ef-a284-e45e-b968-27bff221e993@evolvis.org> <0c1bbc5c-0215-5c27-5507-c8eb2e56f248@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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