Last active
January 25, 2016 11:43
-
-
Save rafaelbernard/54aa2676aa8d16ee6536 to your computer and use it in GitHub Desktop.
get_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 locktype, database, relation,page,tuple,virtualxid,transactionid,classid,objid,objsubid,virtualtransaction,pid | |
, mode,granted,datname,datdba,datctype,datistemplate,datallowconn,datconnlimit,datlastsysoid,datfrozenxid,dattablespace,datacl | |
, c.relname as table_name | |
from pg_locks l | |
join pg_database d | |
on d.oid = l.database | |
join pg_class c | |
on c.oid = l.relation; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment