pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: iradu@unix-world.org
To: pgsql-bugs@postgresql.org
Subject: BUG #14297: ON CONFLICT fails
Date: Fri, 26 Aug 2016 16:56:26 +0000
Message-ID: <20160826165626.15681.81143@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      14297
Logged by:          Ilies Radu
Email address:      iradu@unix-world.org
PostgreSQL version: 9.5.4
Operating system:   Any
Description:        

Hi,

I have an issue with the newest ON CONFLICT clause in newest PostgreSQL
9.5.

If I do:
INSERT ... ON ONFLICT ...
works ok.

But if I do
UPDATE ... ON CONFLICT ...
fails always (said feature not implemented !!)

By example I need:
UPDATE mytable SET some_unique_key = 'some_existing_value' ON CONFLICT DO
NOTHING

Is this a bug or a not implemented feature (UPDATE ... ON CONFLICT)

If is not implemented I hope to see it soon as also UPDATES can generate a
conflict not only inserts.

In mysql there is:
INSERT IGNORE
UPDATE IGNORE

In postgresql 9.5 I only can see now:
INSERT ON CONFLICT DO NOTHING
*** UPDATE ON CONFLICT DO NOTHING *** Fails always !!!


Regards,
Radu








-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


view thread (2+ messages)  latest in thread

Message-ID: <20160826165626.15681.81143@wrigleys.postgresql.org>
Permalink:  ../20160826165626.15681.81143@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20160826165626.15681.81143@wrigleys.postgresql.org

 · 

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-bugs@postgresql.org
  Cc: iradu@unix-world.org
  Subject: Re: BUG #14297: ON CONFLICT fails
  In-Reply-To: <20160826165626.15681.81143@wrigleys.postgresql.org>
  References: <20160826165626.15681.81143@wrigleys.postgresql.org>

* 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