> You say below the cut that you're not updating keys, so presumably it's 
> other columns. Which leads me to something I've wondered for a while - 
> why do we lock the whole row? Is it just a matter of "not optimised that 
> yet" or is there a good reason why locking just some columns isn't 
> practical.

For the conditions of generating the deadlock, see:


The reason of the occasional orphan rows is not completely clear to me,
but it must be some kind of race condition while
inserting/deleting/?updating concurrently the parent/child tables.


---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?


Reply via email to