Skip to content

Instantly share code, notes, and snippets.

@SunDi3yansyah
Last active July 1, 2020 15:13
Show Gist options
  • Select an option

  • Save SunDi3yansyah/8d0ce2f4ea017729df7ba6d4cffa2920 to your computer and use it in GitHub Desktop.

Select an option

Save SunDi3yansyah/8d0ce2f4ea017729df7ba6d4cffa2920 to your computer and use it in GitHub Desktop.
Postgresql - unable to drop database because of some auto connections to DB

REVOKE CONNECTION

REVOKE CONNECT ON DATABASE [DATABASE_NAME] FROM public;

DROP DATABASE

DROP DATABASE [DATABASE_NAME];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment