dbTalk Databases Forums  

A transaction question

comp.databases.theory comp.databases.theory


Discuss A transaction question in the comp.databases.theory forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Christoph Rupp
 
Posts: n/a

Default A transaction question - 07-23-2008 , 02:42 AM






Hi,

i have a question about two parallel transactions which insert the
same key.

Assume that key A does not yet exist.

T1 Begin
T2 Begin
T1 Insert A
T2 Insert A
T1 Commit
T2 Commit

My guess is: "T2 Insert A" is a conflict with the previous insert of
T1. But i also think that in a MVCC database the conflict can only be
resolved when T2 is committed. What happens then? Does the commit
fail, or is A silently overwritten? Or is the typical behaviour in
this case implementation-specific?

Thanks for your answers,
Christoph

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.