From: Randy Westlund <rwestlun@gmail.com>
To: Marko Tiikkaja <marko@joh.to>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13886: When INSERT ON CONFLICT DO UPDATE updates, it returns INSERT rather than UPDATE
Date: Mon, 25 Jan 2016 13:48:25 -0500
Message-ID: <20160125184825.GB44462@gmail.com> (raw)
In-Reply-To: <56A5F246.3070300@joh.to>
References: <20160125074806.2555.44482@wrigleys.postgresql.org>
<56A5F246.3070300@joh.to>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On Mon, Jan 25, 2016 at 11:00:38AM +0100, Marko Tiikkaja wrote:
> On 25/01/16 08:48, rwestlun@gmail.com wrote:
> > I believe postgres should be returning "UPDATE" here instead of "INSERT"
> > because I see no way to know which operation took place.
>
> That seems a bit short-sighted. What should happen if one row was added
> and one updated?
That's a good point. I'm not sure what the proper way to determine which
operation took place should be :/
Attachments:
signature.asc (application/pgp-signature, 472B) download
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-bugs@postgresql.org
Cc: rwestlun@gmail.com, marko@joh.to
Subject: Re: BUG #13886: When INSERT ON CONFLICT DO UPDATE updates, it returns INSERT rather than UPDATE
In-Reply-To: <20160125184825.GB44462@gmail.com>
References: <20160125074806.2555.44482@wrigleys.postgresql.org> <56A5F246.3070300@joh.to> <20160125184825.GB44462@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