Created
July 9, 2017 18:44
-
-
Save mattes/f2c1f821a59d65b5c5095963707c4963 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 * FROM pg_stat_activity WHERE client_port = -1; | |
SELECT pg_terminate_backend(pg_stat_activity.pid) FROM pg_stat_activity WHERE client_port = -1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment