From: Justin Pryzby <pryzby@telsasoft.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general@postgresql.org
Subject: Re: distinguish update from insert (on conflict)
Date: Tue, 21 May 2019 21:37:49 -0500
Message-ID: <20190522023748.GH4426@telsasoft.com> (raw)
In-Reply-To: <106c0789-7a13-7f9c-8d49-3562556bcdd8@aklaver.com>
References: <20190522013428.GG4426@telsasoft.com>
<106c0789-7a13-7f9c-8d49-3562556bcdd8@aklaver.com>
On Tue, May 21, 2019 at 06:57:36PM -0700, Adrian Klaver wrote:
> On 5/21/19 6:34 PM, Justin Pryzby wrote:
> >Is it still impossible to distinguish whether a row was inserted vs updated ?
>
> You will need to be more specific.
Sorry, I mean with UPSERT / "INSERT .. ON CONFLICT DO UPDATE", is it possible
to tell whether a row was inserted vs. updated ?
Thanks,
Justin
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: pryzby@telsasoft.com, adrian.klaver@aklaver.com
Subject: Re: distinguish update from insert (on conflict)
In-Reply-To: <20190522023748.GH4426@telsasoft.com>
References: <20190522013428.GG4426@telsasoft.com> <106c0789-7a13-7f9c-8d49-3562556bcdd8@aklaver.com> <20190522023748.GH4426@telsasoft.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