From: paul@salesintel.com
To: pgsql-bugs@postgresql.org
Subject: BUG #13846: INSERT ON CONFLICT consumes sequencers on conflicts
Date: Tue, 05 Jan 2016 15:02:27 +0000
Message-ID: <20160105150227.1117.51692@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: 13846
Logged by: Paul Hester
Email address: paul@salesintel.com
PostgreSQL version: 9.5rc1
Operating system: Windows 10 Pro
Description:
When using an INSERT statement with an ON CONFLICT clause, if there is a
conflict, and the table being inserted into has a column defaulted to
nextval('seq'), the sequencer 'seq' is always incremented. This can quickly
and artificially consume all values of the sequencer; it behaves as if
conflict detection happens after inserts are attempted, rather than before.
--
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: paul@salesintel.com
Subject: Re: BUG #13846: INSERT ON CONFLICT consumes sequencers on conflicts
In-Reply-To: <20160105150227.1117.51692@wrigleys.postgresql.org>
References: <20160105150227.1117.51692@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