1 In Postgres, a task is processed by locking a row, preventing other queries from modifying it until the task is completed.
“The first line locks a row. It tells Postgres, hey, I'm going to be doing something with this. No other queries better be doing something with this. Right?”