pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <kgrittn@ymail.com>
To: Peter Bailis <pbailis@cs.berkeley.edu>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #11732: Non-serializable outcomes under serializable isolation
Date: Tue, 28 Oct 2014 06:09:39 -0700
Message-ID: <1414501779.7484.YahooMailNeo@web122306.mail.ne1.yahoo.com> (raw)
In-Reply-To: <CALgH=-M-o7T8FqNgKh8TENqtThRx7CPEtW3fJztTZaa4Ox9WCA@mail.gmail.com>
References: <20141021071458.2678.9080@wrigleys.postgresql.org>
	<1413914124.90570.YahooMailNeo@web122305.mail.ne1.yahoo.com>
	<CALgH=-PnoturT6eLN37=MEyhaFpqrVezyLig4CRK4A_kEgQPBQ@mail.gmail.com>
	<1413916094.99119.YahooMailNeo@web122304.mail.ne1.yahoo.com>
	<CALgH=-M-o7T8FqNgKh8TENqtThRx7CPEtW3fJztTZaa4Ox9WCA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Peter Bailis <pbailis@cs.berkeley.edu> wrote:

> Have you had any luck reproducing this behavior?

Yes I have.  I was able to create it using just plpgsql and psql
with a bash script.  Using that technique I was able to create the
problem without the RETURNING clause and with a streamlining of
the function you suggested.  With an int column instead of a
character-based column I have (so far) not been able to trigger it.

I have confirmed that this bug goes all the way back to the
introduction of the Serializable Snapshot Isolation technique in
9.1.

Everything suggests a race condition.  I haven't been able to pin
down exactly where it happens, but that's just a matter of time.
It is interesting that the data type of the column changes the
timing enough to have such a large effect on seeing the failure.
I've set it aside for the moment but expect to get back to it later
this week.

Thanks for bringing this to our attention, complete with a
reproducible test case!

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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



view thread (10+ messages)  latest in thread

Message-ID: <1414501779.7484.YahooMailNeo@web122306.mail.ne1.yahoo.com>
Permalink:  ../1414501779.7484.YahooMailNeo@web122306.mail.ne1.yahoo.com/
Also on:    postgresql.org/message-id/1414501779.7484.YahooMailNeo@web122306.mail.ne1.yahoo.com

 · 

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-bugs@postgresql.org
  Cc: kgrittn@ymail.com, pbailis@cs.berkeley.edu
  Subject: Re: BUG #11732: Non-serializable outcomes under serializable isolation
  In-Reply-To: <1414501779.7484.YahooMailNeo@web122306.mail.ne1.yahoo.com>
  References: <20141021071458.2678.9080@wrigleys.postgresql.org> <1413914124.90570.YahooMailNeo@web122305.mail.ne1.yahoo.com> <CALgH=-PnoturT6eLN37=MEyhaFpqrVezyLig4CRK4A_kEgQPBQ@mail.gmail.com> <1413916094.99119.YahooMailNeo@web122304.mail.ne1.yahoo.com> <CALgH=-M-o7T8FqNgKh8TENqtThRx7CPEtW3fJztTZaa4Ox9WCA@mail.gmail.com> <1414501779.7484.YahooMailNeo@web122306.mail.ne1.yahoo.com>

* 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