RefLib

Reference library for AI

Back

postgresql_16:7.1.106.2 Parameters

PostgreSQL 16 > Reference > SQL Commands > DROP DATABASE > Parameters

IF EXISTS

Do not throw an error if the database does not exist. A notice is issued in this case.

*name*

The name of the database to remove.

FORCE

Attempt to terminate all existing connections to the target database. It doesn't terminate if prepared transactions, active logical replication slots or subscriptions are present in the target database.

This terminates background worker connections and connections that the current user has permission to terminate with pg_terminate_backend, described in (see postgresql_16:3.6.27.2). If connections would remain, this command will fail.

Back