Trying to drop a db from AWS RDS (postgres) is blocked only for superuser (which is reserved to AWS only).
trying to run this command on my instance:
DROP DATABASE "dbname"
results in error:
psycopg2.InternalError: DROP DATABASE cannot run inside a transaction block
I saw this issue in AWS forums, which seems to have been active by a lot of people, but no AWS representative giving a valid solution.
How can I drop my db without taking down the whole instance and raising it again?
psql -lon your server (directly on the postgres server, not as a query). This will give you a list of all databases available on that server. Then choose a db that is not the one you want to drop and run\connect <DB_NAME>, which will connect you to that db. There you should be able to run the DROP DB commnad