Created
December 18, 2019 14:46
-
-
Save stultus/fd14681647c940e204cba681b7ea2ee8 to your computer and use it in GitHub Desktop.
See postgress 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 t.relname, l.locktype, page, virtualtransaction, pid, mode, granted | |
FROM pg_locks l, pg_stat_all_tables t | |
WHERE l.relation = t.relid ORDER BY relation asc; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment