postgresql_16:7.1.106.3 Notes
PostgreSQL 16 > Reference > SQL Commands > DROP DATABASE > Notes
DROP DATABASE cannot be executed inside a transaction block.
This command cannot be executed while connected to the target database. Thus, it might be more convenient to use the program (see postgresql_16:7.2.4) instead, which is a wrapper around this command.