Created
April 7, 2020 07:16
-
-
Save darrenrogan/2932d696f445da7f4343d3482d8680d5 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 pg_terminate_backend(pid) | |
FROM pg_stat_activity | |
WHERE datname = 'mydb'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment