Why am I not able to keep a value unique using Transactions?

I just took a look at the upsert documentation and I think it should start with a definition of upsert.

I am not new to databases and I had to search google for its meaning.