How to detect query which holds the lock in Postgres? How to detect query which holds the lock in Postgres? postgresql postgresql