If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
I have a user set up in a postgresql DB and am trying to delete the user and the db.
When I use dropdb, I get the message "failed to delete, there are 6 sessions still using this DB".
But how do I disconnect all of the sessions? please.
The clean way is to shut down those applications that are establishing those connections.
You can use the pg_stat_activity view (see http://www.postgresql.org/docs/curre...ing-stats.html) to find out what applications are connecting (and from where).