Glossary: PostgreSQL Beyond the Basics
A view listing every lock, with `granted` true or false.
pg_stat_activityLock modes, lock queue