BUG #14774: INSERT ... ON CONFLICT

From: jym(at)outlook(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Cc: jym(at)outlook(dot)com
Subject: BUG #14774: INSERT ... ON CONFLICT
Date: 2017-08-08 17:15:00
Message-ID: 20170808171500.8425.77998@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 14774
Logged by: Jym Morton
Email address: jym(at)outlook(dot)com
PostgreSQL version: 9.6.3
Operating system: Windows 10
Description:

I've noticed that if there's a conflict the sequence still adds 1 even if
the INSERT is a conflict.

i.e. INSERT INTO foo(bar) VALUES ('test') ON CONFLICT bar = EXCLUDE.bar
returning foopk

bar has a UNIQUE constraint, doing this 10 times you see the Next serial in
foopk is 10 even though there is only 1 row in the table.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andres Freund 2017-08-08 18:06:23 Re: BUG #14774: INSERT ... ON CONFLICT
Previous Message Hillel Eilat 2017-08-08 16:50:25 ODBC setup of "Level of rollback on errors" is not settable at run time