Skip to content

Instantly share code, notes, and snippets.

@vladimir-e
Created August 26, 2013 06:41
Show Gist options
  • Save vladimir-e/6338635 to your computer and use it in GitHub Desktop.
Save vladimir-e/6338635 to your computer and use it in GitHub Desktop.
Force DROP DATABASE #postgresql #pg
update pg_database set datallowconn = 'false' where datname = 'dbname';
DROP DATABASE 'dbname'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment