Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Delete database from postgre python django

REVOKE CONNECT ON DATABASE digipm FROM public;

SELECT pg_terminate_backend(pg_stat_activity.pid)
FROM pg_stat_activity
WHERE pg_stat_activity.datname = 'digipm';
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Delete #database #postgre #python #django
ADD COMMENT
Topic
Name
3+8 =