Created
August 12, 2020 07:44
-
-
Save arekgotfryd/970cbf64a34bfbe5e6608de6222d799b 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
REVOKE CONNECT ON DATABASE TARGET_DB FROM public; | |
SELECT pg_terminate_backend(pg_stat_activity.pid) | |
FROM pg_stat_activity | |
WHERE pg_stat_activity.datname = 'TARGET_DB'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment