Trying to drop the primary database "foo", I get the error
ERROR: cannot drop the currently open database
Whats the right way to drop the primary psql database?
Trying to drop the primary database "foo", I get the error
ERROR: cannot drop the currently open database
Whats the right way to drop the primary psql database?
That's what the database postgres
is there for.
Connect to it to drop your database.
Create a new database to log into while you drop the original one - I guess?
create database _;
(relog with -d _ )
drop database dbname;
create database dbname;
(relog)
drop database _;