I have a rails application running over Postgres.
I have two servers: one for testing and the other for production.
Very often I need to clone the production
Rails is likely connecting to the database to drop it but when you log in via phppgadmin it is logging in via the template1 or postgres database, thus you are not affected by it.