featured image deadlock.jpg

Connection pool + distributed lock = deadlock

How to get a deadlock using PostgreSQL advisory lock.