Created
May 9, 2017 03:54
-
-
Save commondatageek/dfa82e50075031fd48cf11e2895c0656 to your computer and use it in GitHub Desktop.
postgresql kill query
This file contains hidden or 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
-- see running queries | |
select * from pg_stat_activity; | |
-- Find the process you want to kill, then type: | |
select pg_cancel_backend(<pid of the process>) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment