Created
May 27, 2015 01:58
-
-
Save whyvez/bce602c015b0f83b7879 to your computer and use it in GitHub Desktop.
PG conections
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
-- get pid for db | |
SELECT state, client_addr, pid FROM pg_stat_activity where datname = 'afgo_qa'; | |
-- kill pid for db | |
SELECT pg_terminate_backend(12193); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment