Kill a postgresql session/connection

前端之家收集整理的这篇文章主要介绍了Kill a postgresql session/connection前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

How can I kill all my postgresql connections?

I'm trying a rake db:drop but I get:

ERROR:  database "database_name" is being accessed by other users 
DETAIL:  There are 1 other session(s) using the database. 


I've tried shutting down the processes I see from a ps -ef | grep postgres but this doesn't work either:

kill: kill 2358 Failed: operation not permitted

原文链接:https://www.f2er.com/postgresql/196445.html

猜你在找的Postgre SQL相关文章