this post was submitted on 08 Nov 2025
149 points (97.5% liked)

Programmer Humor

27428 readers
1631 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] FishFace@piefed.social 2 points 1 week ago (1 children)

Why would repeatable read raise an error? I'm a little rusty but I thought it was only serialisable that could do, and that repeatable read simply ensured that the committed writes of transaction 2 would not be read in transaction 1, so it updating over the top of 2 is fine.

I think you're right. An UPDATE would fail, but not an INSERT.