Created
January 7, 2023 16:59
-
-
Save kubawieczorek/cb5d046a4117547c3da1587436aeb7a9 to your computer and use it in GitHub Desktop.
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, mode, query FROM pg_locks pl | |
LEFT JOIN pg_stat_activity psa ON pl.pid = psa.pid | |
JOIN pg_class pc ON pc.oid = pl.relation | |
WHERE pc.relname = 'employees' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment