pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: Federico <cfederico87@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Guidance on INSERT RETURNING order
Date: Tue, 11 Apr 2023 15:45:59 -0600
Message-ID: <961adda9-4eb1-79f6-ee8f-9440a520ac15@gmail.com> (raw)
In-Reply-To: <CAN19dydktTMU8hQ+2-PkaPf6PV6HFOvDwODD0cchNxVuVXSvKg@mail.gmail.com>
References: <CAN19dycS0oUorLOGgjxMX8NZq-hOA1RJrzwC4L3FxpMf4BQbBQ@mail.gmail.com>
	<95fbd8c8-2f7a-38a1-4a41-b2ac3763d89c@aklaver.com>
	<CAN19dyed0o5eCUYSEq30q39SpFmeZ7WSEHBfR042YYTVoipHcg@mail.gmail.com>
	<6644419d-50e1-97c9-5507-b6915bec96fa@gmail.com>
	<CAN19dydktTMU8hQ+2-PkaPf6PV6HFOvDwODD0cchNxVuVXSvKg@mail.gmail.com>


>> Can your client retain a hashmap of md5,data pairings, allowing the
>> lookup on the way back using the returned data and supplied id?
>>
> When using unique columns or similar, that's something that is done,
> but if there are no unique columns in the value no match can be done
> reliably with the source data, since sqlalchemy is a library that
> allows arbitrary schemas to be generated.
>
> Thanks for the reply,
>    Federico
So you're returned data is not what was sent to the server? Otherwise it 
should generate the same md5, as I understand it. Identical data would 
of course be a problem.






view thread (56+ messages)  latest in thread

Message-ID: <961adda9-4eb1-79f6-ee8f-9440a520ac15@gmail.com>
Permalink:  ../961adda9-4eb1-79f6-ee8f-9440a520ac15@gmail.com/
Also on:    postgresql.org/message-id/961adda9-4eb1-79f6-ee8f-9440a520ac15@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, cfederico87@gmail.com
  Subject: Re: Guidance on INSERT RETURNING order
  In-Reply-To: <961adda9-4eb1-79f6-ee8f-9440a520ac15@gmail.com>
  References: <CAN19dycS0oUorLOGgjxMX8NZq-hOA1RJrzwC4L3FxpMf4BQbBQ@mail.gmail.com> <95fbd8c8-2f7a-38a1-4a41-b2ac3763d89c@aklaver.com> <CAN19dyed0o5eCUYSEq30q39SpFmeZ7WSEHBfR042YYTVoipHcg@mail.gmail.com> <6644419d-50e1-97c9-5507-b6915bec96fa@gmail.com> <CAN19dydktTMU8hQ+2-PkaPf6PV6HFOvDwODD0cchNxVuVXSvKg@mail.gmail.com> <961adda9-4eb1-79f6-ee8f-9440a520ac15@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