ERROR: database "name database" is being accessed by other users DETAIL: There are 2 other sessions using the database. code example
Example: ERROR: database "backend" is being accessed by other users DETAIL: There are 3 other sessions using the database.
sudo service postgresql restart