pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add isolation test for INSERT ON CONFLICT speculative insertion
Date: Tue, 14 May 2019 19:06:43 +0000
Message-ID: <E1hQcl9-0008Tx-0k@gemulon.postgresql.org> (raw)

Add isolation test for INSERT ON CONFLICT speculative insertion failure.

This path previously was not reliably covered. There was some
heuristic coverage via insert-conflict-toast.spec, but that test is
not deterministic, and only tested for a somewhat specific bug.

Backpatch, as this is a complicated and otherwise untested code
path. Unfortunately 9.5 cannot handle two waiting sessions, and thus
cannot execute this test.

Triggered by a conversion with Melanie Plageman.

Author: Andres Freund
Discussion: https://postgr.es/m/CAAKRu_a7hbyrk=wveHYhr4LbcRnRCG=yPUVoQYB9YO1CdUBE9Q@mail.gmail.com
Backpatch: 9.5-

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/04595960a0a7c8844198668186bec2a6115244e0

Modified Files
--------------
.../expected/insert-conflict-specconflict.out      | 179 +++++++++++++++++++++
src/test/isolation/isolation_schedule              |   1 +
.../specs/insert-conflict-specconflict.spec        | 149 +++++++++++++++++
3 files changed, 329 insertions(+)



view thread (4+ messages)  latest in thread

Message-ID: <E1hQcl9-0008Tx-0k@gemulon.postgresql.org>
Permalink:  ../E1hQcl9-0008Tx-0k@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hQcl9-0008Tx-0k@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: andres@anarazel.de
  Subject: Re: pgsql: Add isolation test for INSERT ON CONFLICT speculative insertion
  In-Reply-To: <E1hQcl9-0008Tx-0k@gemulon.postgresql.org>
  References: <E1hQcl9-0008Tx-0k@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