https://www.postgresql.org/docs/12/explicit-locking.html#LOCKING-DEADLOCKS