DEBUG DEADLOCKS IN POSTGRESQL