Databases · Middle · Question 20 of 75

What is a deadlock, and what does PostgreSQL do about it?

Explanation

The aborted transaction should be retried. Prevent deadlocks by locking rows in the same order everywhere and keeping transactions short.

Further reading

Problem with a question

Databases · Middle · question 20

Test yourself

Take the Databases · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz