From: Tom Lane <tgl@sss.pgh.pa.us>
To: bobby.rullo@coreos.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13524: Not Getting expected Serialization error
Date: Wed, 29 Jul 2015 11:40:45 -0400
Message-ID: <30588.1438184445@sss.pgh.pa.us> (raw)
In-Reply-To: <20150728204530.25042.78768@wrigleys.postgresql.org>
References: <20150728204530.25042.78768@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
bobby.rullo@coreos.com writes:
> To reproduce:
> 1) execute statements in sequence 1 on a connection, stopping at the
> "--EXECUTE" statement.
> 2) In another connection, execute all the statements in Sequence 2.
> 3) Back in the first connection execute the remaining statement (the
> "commit;")
> Expected:
> error when trying to commit, eg. "ERROR: could not serialize"
> Actual:
> Both commits succeed.
> Interesting tidbit:
> If you do the exact steps as above but uncomment the "select count(*)" in
> sequence 2, you get the expected error.
This seems perfectly fine to me. Without the "select count(*)" in
transaction 2, there is a valid serialization of the transactions,
ie t1 before t2. Serializability is *not* defined as "the transactions
appear to have executed in the order they were started (or committed)".
It is defined as "there is some consistent order in which they appear
to have executed".
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: tgl@sss.pgh.pa.us, bobby.rullo@coreos.com
Subject: Re: BUG #13524: Not Getting expected Serialization error
In-Reply-To: <30588.1438184445@sss.pgh.pa.us>
References: <20150728204530.25042.78768@wrigleys.postgresql.org> <30588.1438184445@sss.pgh.pa.us>
* 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