Re: Guidance on INSERT RETURNING order

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Guidance on INSERT RETURNING order
Date: 2023-04-12 22:29:54
Message-ID: 0c1bbc5c-0215-5c27-5507-c8eb2e56f248@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> 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. :)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Paquier 2023-04-12 22:31:18 Re: pg_basebackup / recovery
Previous Message Thorsten Glaser 2023-04-12 22:24:13 Re: Guidance on INSERT RETURNING order