pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #14297: ON CONFLICT fails
2+ messages / 2 participants
[nested] [flat]

* BUG #14297: ON CONFLICT fails
@ 2016-08-26 16:56 iradu@unix-world.org
  2016-08-26 20:30 ` Re: BUG #14297: ON CONFLICT fails David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: iradu@unix-world.org @ 2016-08-26 16:56 UTC (permalink / raw)
  To: pgsql-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


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #14297: ON CONFLICT fails
  2016-08-26 16:56 BUG #14297: ON CONFLICT fails iradu@unix-world.org
@ 2016-08-26 20:30 ` David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: David G. Johnston @ 2016-08-26 20:30 UTC (permalink / raw)
  To: iradu@unix-world.org; +Cc: pgsql-bugs

On Fri, Aug 26, 2016 at 12:56 PM, <iradu@unix-world.org> wrote:

> 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:
> ​[...]​
>
> Is this a bug or a not implemented feature (UPDATE ... ON CONFLICT)
>
>
​Given the absence of an "ON CONFLICT" clause in the documentation its safe
to say its not implemented.

​
 https://www.postgresql.org/docs/9.5/static/sql-update.html

​David J.
​

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2016-08-26 20:30 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-08-26 16:56 BUG #14297: ON CONFLICT fails iradu@unix-world.org
2016-08-26 20:30 ` David G. Johnston <david.g.johnston@gmail.com>

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