ERROR: database "backend" is being accessed by other users DETAIL: There are 3 other sessions using the database.
sudo service postgresql restart
ERROR: database "backend" is being accessed by other users DETAIL: There are 3 other sessions using the database.
sudo service postgresql restart
pgadmin postgres ERROR: database is being accessed by other users
PostgresVersion >=9.2
SELECT
pg_terminate_backend(pg_stat_activity.pid)
FROM pg_stat_activity
WHERE
pg_stat_activity.datname = 'name_of_database_to_be_disconnected'
AND pid <> pg_backend_pid()
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us