ERROR: database "backend" is being accessed by other users DETAIL: There are 3 other sessions using the database.

C++
sudo service postgresql restart
Source

Also in C++: