When trying to drop a database in PostgreSQL, it failed with the following error message:
11:32:15 AMStarted executing query at Line 1
database "sampledb" is being accessed by other users
Total execution time: 00:00:05.016
Whoops, seems that our database is still in use. Let’s kill all active connections
Let’s now try to execute the drop database again: