Created
August 14, 2017 17:10
-
-
Save rupurt/a62112510c023390a5a4e6a1b5805f25 to your computer and use it in GitHub Desktop.
Current Postgres Locks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
pg_class.relname, | |
pg_locks.mode | |
FROM pg_locks | |
JOIN pg_class ON pg_class.oid = pg_locks.relation | |
ORDER BY mode ASC; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment