April 2018
Intermediate to advanced
508 pages
15h 22m
English
Consider the following sequence:
At this point, the two processes are now in what's called deadlock; each is trying to obtain a lock on something owned by the other. They both will wait on each other forever if left in this state. One of them has to give up and release the locks they already have.
To search for this situation and resolve it, PostgreSQL doesn't wait forever for a lock. Instead, it only waits an amount of time determined by the deadlock_timeout parameter. After waiting that long, any process trying to ...
Read now
Unlock full access