Re: Revisited: Transactions, insert unique.
От | Joachim Achtzehnter |
---|---|
Тема | Re: Revisited: Transactions, insert unique. |
Дата | |
Msg-id | Pine.LNX.4.21.0004252114340.446-100000@wizard.kraut.bc.ca обсуждение исходный текст |
Ответ на | Re: Revisited: Transactions, insert unique. (Lincoln Yeoh <lylyeoh@mecomb.com>) |
Ответы |
RE: Revisited: Transactions, insert unique.
|
Список | pgsql-general |
In a message to Ed Loehr and pgsql-general, Lincoln Yeoh wrote: > > Transaction A > begin; > insert into test (a,b) select 4,'four' from test > where not exists (select * from test where a=4); > > Transaction B > begin; > insert into test (a,b) select 4,'four' from test > where not exists (select * from test where a=4); > > Then you do a commit on both, and you end up with two rows. This is dissapointing indeed! What this means is that Postgresql transactions are, in fact, not truely serializable. The concurrent execution of these two transactions is not equivalent to some serial execution. Have to read up on the documentation, which I thought was claiming serializability. Joachim -- private: joachim@kraut.bc.ca (http://www.kraut.bc.ca) work: joachim@mercury.bc.ca (http://www.mercury.bc.ca)
В списке pgsql-general по дате отправления: