Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zk80f-0002NQ-GB for pgsql-bugs@arkaria.postgresql.org; Thu, 08 Oct 2015 10:01:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zk80e-000132-Pl for pgsql-bugs@arkaria.postgresql.org; Thu, 08 Oct 2015 10:01:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zk80e-00012m-6w for pgsql-bugs@postgresql.org; Thu, 08 Oct 2015 10:01:12 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Zk80W-0002Gy-Cz for pgsql-bugs@postgresql.org; Thu, 08 Oct 2015 10:01:11 +0000 MIME-Version: 1.0 Subject: BUG #13667: SSI violation... To: pgsql-bugs@postgresql.org From: sean@chittenden.org Date: Thu, 08 Oct 2015 10:00:36 +0000 Message-ID: <20151008100036.8427.63845@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" 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 The following bug has been logged on the website: Bug reference: 13667 Logged by: Sean Chittenden Email address: sean@chittenden.org PostgreSQL version: 9.4.4 Operating system: Linux/FreeBSD Description: A few weeks back I was pointed in the direction of a bug that appears to be an SSI violation. The repro case below is written using bash and psql. In a tight loop, we would expect 50% of these transactions to fail. Instead, periodically we're seeing both transaction commit successfully. The concern is that PostgreSQL thinks these transactions are commutable or the SIREAD lock isn't erected correctly. https://github.com/gfredericks/pg-serializability-bug The two concurrent transactions required to tickle this bug are: BEGIN TRANSACTION ISOLATION LEVEL SERIALIZABLE; INSERT INTO things (id) VALUES ('A'); SELECT id FROM things; COMMIT; BEGIN TRANSACTION ISOLATION LEVEL SERIALIZABLE; INSERT INTO things (id) VALUES ('B'); SELECT id FROM things; COMMIT; Cheers. -sc -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs