ERROR: database "db" is being accessed by other users DETAIL: There are 4 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