Wouldn't that be an error due to serialisation failure if in postgres if you enabled serialisable isolation?
If you didn't, you could get anything, because unless I'm mistaken this is the typical example used to illustrate what goes wrong when you don't have full serialisable isolation.