Commencez par vérifier dans la vue système pg_locks. https://www.postgresql.org/docs/8.4 /interactive/view-pg-locks.html