pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <kgrittn@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Back-patch fcff8a575198478023ada8a48e13b50f70054766 as a bug fix
Date: Wed, 14 Dec 2016 01:20:27 +0000
Message-ID: <E1cGyF9-0007S6-MG@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Back-patch fcff8a575198478023ada8a48e13b50f70054766 as a bug fix.

When there is both a serialization failure and a unique violation,
throw the former rather than the latter.  When initially pushed,
this was viewed as a feature to assist application framework
developers, so that they could more accurately determine when to
retry a failed transaction, but a test case presented by Ian
Jackson has shown that this patch can prevent serialization
anomalies in some cases where a unique violation is caught within a
subtransaction, the work of that subtransaction is discarded, and
no error is thrown.  That makes this a bug fix, so it is being
back-patched to all supported branches where it is not already
present (i.e., 9.2 to 9.5).

Discussion: https://postgr.es/m/1481307991-16971-1-git-send-email-ian.jackson@eu.citrix.com
Discussion: https://postgr.es/m/22607.56276.807567.924144@mariner.uk.xensource.com

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/60314e28eb02c82eb658aaf3c7fcf253004acbb4

Modified Files
--------------
doc/src/sgml/mvcc.sgml                             | 35 ++++++++++++----
src/backend/access/nbtree/nbtinsert.c              |  8 ++++
.../isolation/expected/read-write-unique-2.out     | 29 +++++++++++++
.../isolation/expected/read-write-unique-3.out     | 12 ++++++
.../isolation/expected/read-write-unique-4.out     | 41 ++++++++++++++++++
src/test/isolation/expected/read-write-unique.out  | 29 +++++++++++++
src/test/isolation/isolation_schedule              |  4 ++
src/test/isolation/specs/read-write-unique-2.spec  | 36 ++++++++++++++++
src/test/isolation/specs/read-write-unique-3.spec  | 33 +++++++++++++++
src/test/isolation/specs/read-write-unique-4.spec  | 48 ++++++++++++++++++++++
src/test/isolation/specs/read-write-unique.spec    | 39 ++++++++++++++++++
11 files changed, 307 insertions(+), 7 deletions(-)


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


view thread (4+ messages)  latest in thread

Message-ID: <E1cGyF9-0007S6-MG@gemulon.postgresql.org>
Permalink:  ../E1cGyF9-0007S6-MG@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1cGyF9-0007S6-MG@gemulon.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-committers@postgresql.org
  Cc: kgrittn@postgresql.org
  Subject: Re: pgsql: Back-patch fcff8a575198478023ada8a48e13b50f70054766 as a bug fix
  In-Reply-To: <E1cGyF9-0007S6-MG@gemulon.postgresql.org>
  References: <E1cGyF9-0007S6-MG@gemulon.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