From: jym@outlook.com
To: pgsql-bugs@postgresql.org
Cc: jym@outlook.com
Subject: BUG #14774: INSERT ... ON CONFLICT
Date: Tue, 08 Aug 2017 17:15:00 +0000
Message-ID: <20170808171500.8425.77998@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: 14774
Logged by: Jym Morton
Email address: jym@outlook.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.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: jym@outlook.com
Subject: Re: BUG #14774: INSERT ... ON CONFLICT
In-Reply-To: <20170808171500.8425.77998@wrigleys.postgresql.org>
References: <20170808171500.8425.77998@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