Question : how to hard drop database in postgres
Answered by : pleasant-pintail-htrat3zk22yp
It means another user is accessing the database. Simply restart PostgreSQL. This command will do the trick
root@kalilinux:~#sudo service postgresql restart
Then try dropping the database:
postgres=# drop database test_database;
This will do the trick.
Source : | Last Update : Wed, 21 Apr 21
Question : drop database using terminal postgres
Answered by : restu-wahyu-saputra
sql -U <user> -c "drop database protodb"
Source : | Last Update : Wed, 11 Nov 20