Postgresql 删除数据库连接
程序员文章站
2024-03-21 13:36:46
...
错误:There are 5 other sessions using the database
解决:
SELECT pg_terminate_backend( pid )
FROM pg_stat_activity
WHERE pid <> pg_backend_pid( )
AND datname = current_database( );
上一篇: 单链表的增删改差