pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Justin Pryzby <pryzby@telsasoft.com>
To: pgsql-general@postgresql.org
Subject: Re: distinguish update from insert (on conflict)
Date: Thu, 23 May 2019 06:25:34 +0200
Message-ID: <54f2f1f00aca3fed9e81b4f370c7e90192bc5062.camel@cybertec.at> (raw)
In-Reply-To: <20190522013428.GG4426@telsasoft.com>
References: <20190522013428.GG4426@telsasoft.com>

Justin Pryzby wrote:
> Is it still impossible to distinguish whether a row was inserted vs updated ?
> 
> The latest I can see is here:
> https://wiki.postgresql.org/wiki/UPSERT#RETURNING_behavior
> 
> ..but I'm hopeful that the 4 year old wiki page is out of date.

Maybe this answer can help you:

https://stackoverflow.com/a/39204667/6464308

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






view thread (6+ messages)

Message-ID: <54f2f1f00aca3fed9e81b4f370c7e90192bc5062.camel@cybertec.at>
Permalink:  ../54f2f1f00aca3fed9e81b4f370c7e90192bc5062.camel@cybertec.at/
Also on:    postgresql.org/message-id/54f2f1f00aca3fed9e81b4f370c7e90192bc5062.camel@cybertec.at

 · 

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: laurenz.albe@cybertec.at, pryzby@telsasoft.com
  Subject: Re: distinguish update from insert (on conflict)
  In-Reply-To: <54f2f1f00aca3fed9e81b4f370c7e90192bc5062.camel@cybertec.at>
  References: <20190522013428.GG4426@telsasoft.com> <54f2f1f00aca3fed9e81b4f370c7e90192bc5062.camel@cybertec.at>

* 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