database "DB_Asistencias
" is being accessed by other users
En tal caso podemos usar esta consulta que usé hoy en el trabajo, para Postgres 9.1 (la encontré en StackOverFlow)SELECT pg_terminate_backend(pg_stat_activity.procpid)
FROM pg_stat_activity
WHERE pg_stat_activity.datname = 'DB_Asistencias'
AND procpid <> pg_backend_pid();