Skip to content

postgresql

2 posts with the tag “postgresql”

The bug you never see · Decisions that hold, Part 1

Is there stock? Is the name free? Is the balance enough? Every check-then-act decision has a gap between the check and the write, and two requests can both pass it. Nothing throws, the tests are green, and the bad state turns up weeks later. Why that is, what the database defaults do and don't do, and how to spot it in your own code.