Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xj6X0-0005LB-Iz for pgsql-bugs@arkaria.postgresql.org; Tue, 28 Oct 2014 13:09:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xj6X0-0003v8-2s for pgsql-bugs@arkaria.postgresql.org; Tue, 28 Oct 2014 13:09:50 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xj6Wz-0003v2-Ak for pgsql-bugs@postgresql.org; Tue, 28 Oct 2014 13:09:49 +0000 Received: from nm13-vm5.bullet.mail.ne1.yahoo.com ([98.138.91.235]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Xj6Wv-00042o-D1 for pgsql-bugs@postgresql.org; Tue, 28 Oct 2014 13:09:47 +0000 Received: from [98.138.101.129] by nm13.bullet.mail.ne1.yahoo.com with NNFMP; 28 Oct 2014 13:09:43 -0000 Received: from [98.138.89.194] by tm17.bullet.mail.ne1.yahoo.com with NNFMP; 28 Oct 2014 13:09:40 -0000 Received: from [127.0.0.1] by omp1052.mail.ne1.yahoo.com with NNFMP; 28 Oct 2014 13:09:39 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 992631.33934.bm@omp1052.mail.ne1.yahoo.com Received: (qmail 27136 invoked by uid 60001); 28 Oct 2014 13:09:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1414501779; bh=19b6vvLcfO8t6rSowLqE4VpW40p+wmVmXwa3DWLVvG4=; h=References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=4XsUn0JTZjvt+Y5Y5IGKdi/9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wZ3NxbCBhbmQgcHNxbAp3aXRoIGEgYmFzaCBzY3JpcHQuICBVc2luZyB0aGF0IHRlY2huaXF1ZSBJIHdhcyBhYmxlIHRvIGNyZWF0ZSB0aGUKcHJvYmxlbSB3aXRob3V0IHRoZSBSRVRVUk5JTkcgY2xhdXNlIGFuZCB3aXRoIGEgc3RyZWFtbGluaW4BMAEBAQE- X-Mailer: YahooMailWebService/0.8.203.733 References: <20141021071458.2678.9080@wrigleys.postgresql.org> <1413914124.90570.YahooMailNeo@web122305.mail.ne1.yahoo.com> <1413916094.99119.YahooMailNeo@web122304.mail.ne1.yahoo.com> Message-ID: <1414501779.7484.YahooMailNeo@web122306.mail.ne1.yahoo.com> Date: Tue, 28 Oct 2014 06:09:39 -0700 From: Kevin Grittner Reply-To: Kevin Grittner Subject: Re: BUG #11732: Non-serializable outcomes under serializable isolation To: Peter Bailis Cc: "pgsql-bugs@postgresql.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Peter Bailis 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